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
Page 1 of 1
Deleting %WINDIR%\Setup\Scripts directory and the Setupact.log file
#2
Posted 25 May 2009 - 01:03 PM
Just add these line to your cmd file
This will delete the scripts folder
This will delete your Setupact.log from your computer
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
#3
Posted 26 May 2009 - 05:06 AM
shahed26, on May 25 2009, 09:03 PM, said:
Just add these line to your cmd file
This will delete the scripts folder
This will delete your Setupact.log from your computer
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
#5
Posted 26 May 2009 - 10:48 AM
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
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
#6
Posted 26 May 2009 - 11:00 AM
If you want to delete the setupcomplete.cmd as well then just add this
example
example
Shutdown /r /t 05 DEL /Q /F %0
#7
Posted 26 May 2009 - 12:32 PM
shahed26, on May 26 2009, 07:00 PM, said:
If you want to delete the setupcomplete.cmd as well then just add this
example
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
#8
Posted 26 May 2009 - 12:36 PM
http://www.microsoft.com/resources/documen...s.mspx?mfr=true
http://www.ss64.com/nt/
All of the answers can be found there...
http://www.ss64.com/nt/
All of the answers can be found there...
- ← Discover images
- Unattended Windows Vista/Server 2008
- The <DiskConfiguration> and <WillWipeDisk> instructions →
Share this topic:
Page 1 of 1



Help

Back to top








