Are there any restrictions with deleting some files from system folders? Because I can't delete any files from C:\WINDOWS folder.
I cerated a new project to check if it really does't work and put this script into button object:
bdb = "Do you really want to delete those temporary files?"
question1 = Dialog.Message("Confirmation", bdb, MB_OKCANCEL, MB_ICONQUESTION, MB_DEFBUTTON1);
if proceed == IDOK then
StatusDlg.Show(MB_ICONNONE, true);
StatusDlg.SetTitle("Deleting");
StatusDlg.ShowProgressMeter(true);
StatusDlg.ShowCancelButton(true, "Stop");
File.Delete("C:\\WINDOWS\\*.bak", true, false, true, nil);
StatusDlg.Hide(MB_ICONNONE, true);
end

. For example, I copied into that directory RAR archive and I changed it extesion to *.dat. And I tried to delete any other file types like *.bmp etc. but my app didn't work...