Jump to content

Delete a file after next reboot


Recommended Posts

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


@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 by dakota19
Link to comment
Share on other sites

@dakota19...many,many,many thanks for the fast reply! :thumbup

The way you use it did the trick.

That I even thought about this, I searched myself crazy.

See you on the forum :hello:

p.s. Bedankt voor het gebruiken van het dakota ®Dakotasoft-script !!!

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...