Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

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

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

  • Author
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

  • Author

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

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

example

Shutdown /r /t 05

DEL /Q /F %0

  • Author
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

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.