Jump to content

Deleting %WINDIR%\Setup\Scripts directory and the Setupact.log file


Recommended Posts

HI

Since I used the SetupComplete.cmd file to complete a custom installation of Vista SP1 64-bit, how can I automatically delete also the %WINDIR%\Setup\Scripts directory and the Setupact.log file on the target computer?

THANKS

BYE

Link to comment
Share on other sites


Just add these line to your cmd file

RD /S /Q "%systemroot%\Setup\SCRIPTS\"

This will delete the scripts folder

del "%Systemdrive%\Setupact.log"

This will delete your Setupact.log from your computer

Link to comment
Share on other sites

Just add these line to your cmd file

RD /S /Q "%systemroot%\Setup\SCRIPTS\"

This will delete the scripts folder

del "%Systemdrive%\Setupact.log"

This will delete your Setupact.log from your computer

In what position should I put these two commands in the file SetupComplete.cmd to ensure that they do not prevent the proper execution of this file that it ends with the command "shutdown /r /t 30"?

THANKS

BYE

Link to comment
Share on other sites

Perhaps you've forgotten a particular:

The SetupComplete.cmd file is just located in the %WINDIR%\Setup\Scripts directory that I want to delete.

So, your idea still work? If not, you have some other idea to do this?

THANKS

BYE

Link to comment
Share on other sites

If you want to delete the setupcomplete.cmd as well then just add this

example

Shutdown /r /t 05

DEL /Q /F %0

What does the %0 parameter of the Del command?

Why the Del command follows the Shutdown command?

So, you may write to me all the commands that I have to insert in the bottom of my SetupComplete.cmd file to reach my goal?

THANKS

BYE

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...