balubeto Posted May 25, 2009 Share Posted May 25, 2009 HISince 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?THANKSBYE Link to comment Share on other sites More sharing options...
shahed26 Posted May 25, 2009 Share Posted May 25, 2009 Just add these line to your cmd fileRD /S /Q "%systemroot%\Setup\SCRIPTS\"This will delete the scripts folderdel "%Systemdrive%\Setupact.log"This will delete your Setupact.log from your computer Link to comment Share on other sites More sharing options...
balubeto Posted May 26, 2009 Author Share Posted May 26, 2009 Just add these line to your cmd fileRD /S /Q "%systemroot%\Setup\SCRIPTS\"This will delete the scripts folderdel "%Systemdrive%\Setupact.log"This will delete your Setupact.log from your computerIn 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"?THANKSBYE Link to comment Share on other sites More sharing options...
shahed26 Posted May 26, 2009 Share Posted May 26, 2009 Put these commands before "shutdown /r /t 30" Link to comment Share on other sites More sharing options...
balubeto Posted May 26, 2009 Author Share Posted May 26, 2009 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?THANKSBYE Link to comment Share on other sites More sharing options...
shahed26 Posted May 26, 2009 Share Posted May 26, 2009 If you want to delete the setupcomplete.cmd as well then just add thisexampleShutdown /r /t 05DEL /Q /F %0 Link to comment Share on other sites More sharing options...
balubeto Posted May 26, 2009 Author Share Posted May 26, 2009 If you want to delete the setupcomplete.cmd as well then just add thisexampleShutdown /r /t 05DEL /Q /F %0What 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?THANKSBYE Link to comment Share on other sites More sharing options...
shahed26 Posted May 26, 2009 Share Posted May 26, 2009 http://www.microsoft.com/resources/documen...s.mspx?mfr=truehttp://www.ss64.com/nt/All of the answers can be found there... 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