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?
 
      
 Visit the Community page
 Visit the Community page Join our forums
 Join our forums Subscribe to our email newsletter
 Subscribe to our email newsletter Subscribe with RSS
 Subscribe with RSS Follow us on BlueSky
 Follow us on BlueSky Follow us on Facebook
 Follow us on Facebook Follow us on LinkedIn
 Follow us on LinkedIn Follow us on Mastodon
 Follow us on Mastodon