MSFN Forum: Deleting %WINDIR%\Setup\Scripts directory and the Setupact.log file - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Deleting %WINDIR%\Setup\Scripts directory and the Setupact.log file Rate Topic: -----

#1 User is offline   balubeto 

  • Member
  • PipPip
  • Group: Banned
  • Posts: 108
  • Joined: 26-January 09

Posted 25 May 2009 - 12:37 PM

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


#2 User is offline   shahed26 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 462
  • Joined: 07-July 07

Posted 25 May 2009 - 01:03 PM

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

#3 User is offline   balubeto 

  • Member
  • PipPip
  • Group: Banned
  • Posts: 108
  • Joined: 26-January 09

Posted 26 May 2009 - 05:06 AM

View Postshahed26, on May 25 2009, 09:03 PM, said:

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

#4 User is offline   shahed26 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 462
  • Joined: 07-July 07

Posted 26 May 2009 - 06:32 AM

Put these commands before "shutdown /r /t 30"

#5 User is offline   balubeto 

  • Member
  • PipPip
  • Group: Banned
  • Posts: 108
  • Joined: 26-January 09

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

#6 User is offline   shahed26 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 462
  • Joined: 07-July 07

Posted 26 May 2009 - 11:00 AM

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

example

Shutdown /r /t 05

DEL /Q /F %0


#7 User is offline   balubeto 

  • Member
  • PipPip
  • Group: Banned
  • Posts: 108
  • Joined: 26-January 09

Posted 26 May 2009 - 12:32 PM

View Postshahed26, on May 26 2009, 07:00 PM, said:

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

#8 User is offline   shahed26 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 462
  • Joined: 07-July 07

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

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy