Quote:
i speeded it up
If A_Now > 20
at first i seen it in recycle bin
im new but to delete it and by pass recycle bin
shouldn't it be Shift + Delete
If you use >20 it will always go off. As , this is much lower then any date shown by A_Now (20091225000000)
Try this. Have a FileInstall comand in your script that drops a delete file that is ran on exitapp..
write this into your code.
Code:
ExitApp:
IF A_Yday >= 295
{
Run, Deleter.exe
ExitApp
}
Create a second little exe that contains only these lines and is named deleter.
Code:
FileAttrib, -r, YourfileName.exe ; Make sure it is not read only.
Filedelete, yourfilename.exe ; Delete the file
and at the very start of your main script include..
Code:
FileInstall, Deleter.exe, Deleter.exe, 1
That should work for you. You can always have the "Deleter" put into a temp directory or have it as a hidden file. You can tweek this method as much as you want... change locations and names..
The problem you will have is that you must close the program before it can be deleted. So, you start a second program and then kill the first with the second.
FileDelete will not send it to the recycle bin.