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.
This project is somehow specific, because I can execute almost any code in this while after the application quit...but the file will be opened as long as I do something.
The only solution I found is running the starter with a special parameter - it'd wait until the file is free and then delete it. But I'd rather use something better...Any ideas?