Scheduling file delation
My starter:
1. Creates a temporary file
2. Starts the application
3. Quits
The file is in use as long as the app is alive and a while longer.
Then I'd like to delete it.
Does the winapi task scheduling work on VERY limited accounts?
I haven't checked too carefully, because I doubt it does.
I tried
CreateFile( filePath, 0, FILE_SHARE_READ | FILE_SHARE_WRITE, 0,
OPEN_ALWAYS, FILE_FLAG_DELETE_ON_CLOSE, 0);
before starting the app, but it didn't work.
- Read more about Scheduling file delation
- Log in or register to post comments