hi, i was looking for program which would allow run a program/batch on shutdown (enabled in xp professional) in 98/2000/xp home.
there is one application shutdown folder lite, but it wasn't working for us. so i built simple shutdown program using sample code from vbnet.org.
i added there the following code:
Dim RETVAL As Variant
RETVAL = Shell("c:\exit.bat", 1)
where exit.bat is:
RD /S /q "C:\Documents and Settings\Owner\Local Settings\History"
RD /S /q "C:\Documents and Settings\Default User\Local Settings\History"
RD /S /q "D:\Temp\"
xcopy c:\dinsys\*.* g:\backup\*.*
the problem is that shutdown ends before this exit.bat is done. what would be the best way to deal with this issue, please?
there is one application shutdown folder lite, but it wasn't working for us. so i built simple shutdown program using sample code from vbnet.org.
i added there the following code:
Dim RETVAL As Variant
RETVAL = Shell("c:\exit.bat", 1)
where exit.bat is:
RD /S /q "C:\Documents and Settings\Owner\Local Settings\History"
RD /S /q "C:\Documents and Settings\Default User\Local Settings\History"
RD /S /q "D:\Temp\"
xcopy c:\dinsys\*.* g:\backup\*.*
the problem is that shutdown ends before this exit.bat is done. what would be the best way to deal with this issue, please?