DJPro Posted December 29, 2006 Share Posted December 29, 2006 Hello folks,I was wondering if someone had a script to delete a file after the next reboot?I can't fix it with a cleanup.cmd for example because the file is a log file that is not visible until the next reboot.I want to delete it automatically after my unattended install, so if anyone has an idea...your welcome!Greetz, DJPro Link to comment Share on other sites More sharing options...
dakota19 Posted December 29, 2006 Share Posted December 29, 2006 (edited) @DEL "%UserProfile%\Bureaublad\*.lnk">NUL @DEL "%AllUsersProfile%\Bureaublad\*.lnk">NUL @DEL "%DefaultUserProfile%\Bureaublad\*.lnk">NUL shutdown.exe -r -f -t 30 -c "Bedankt voor het gebruiken van dakota ®Dakotasoft Installatie" @move %systemdrive%\logo\ronny3.cmd %systemdrive%\"Documents and Settings\All Users\MenuStart\Programma's\Opstarten\" @del %ystemdrive%\"DocumentsandSettings\AllUsers\MenuStart\Programma's\Opstarten\ronny2.cmd"i'm putting a cmd file at the and of the first cmd file in the startup and then it's beeing executed at first startup and on the and of that cmd file i'm deleting it out of the startup folder ready you are ! Edited December 29, 2006 by dakota19 Link to comment Share on other sites More sharing options...
DJPro Posted December 30, 2006 Author Share Posted December 30, 2006 @dakota19...many,many,many thanks for the fast reply! The way you use it did the trick.That I even thought about this, I searched myself crazy.See you on the forum p.s. Bedankt voor het gebruiken van het dakota ®Dakotasoft-script !!! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now