Re[2]: Run on shutdown
- Posted by "Thomas Parslow (PatRat)" <patrat at rat-software.com> Apr 27, 2001
- 415 views
> Brian, > > I'm also planning on putting that option into the program. Another problem > exists with on start-up though. Windows locks certain index.dat files and I > imagine these files would be locked down by the time windows gets to the > stage where it runs programs from those places. > > I've seen programs that clean temporary files and so on before windows locks > them, still wondering how its done. > > As for the shutdown, I'm thinking I need to use call_back and > WM_QUERYENDSESSION (see msdn) in some manner, but I'm uncertain how to do > it. > > Thanks for your suggestions > > Peter Have a look at: http://support.microsoft.com/support/kb/articles/Q140/5/70.ASP This page details how to delete (or move) files that are in use the next time windows is rebooted in windows 9x/me and windows NT/200. Thomas Parslow (PatRat) ICQ #:26359483 Rat Software http://www.rat-software.com/ Please leave quoted text in place when replying