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.

Getting stuck on cleanup...

Featured Replies

I'm so close to done with my disc, so this is driving me crazy. When I get to cleanup.cmd most of it runs perfectly, until I get to a point where I call another batch file. I see that batch file open and close and then my cleanup.cmd gets stuck and I have to manually click the X to close it, and nothing below my call to the other batch file is run. Here's the script below, any help would be great.

REM-------------------------------------------------------------------------------------
REM  Setup Firefox Associations
REM-------------------------------------------------------------------------------------
start /wait %systemdrive%\install\Applications\Firefox\Firefox.cmd

REM-------------------------------------------------------------------------------------
REM  Remove unnecessary directories
REM-------------------------------------------------------------------------------------
ATTRIB -R "%systemdrive%\My Shared Folder" /s /d
ATTRIB -R "%systemdrive%\Install" /s /d
ATTRIB -R "%systemdrive%\OfficeTEMP" /s /d
ATTRIB -R "%systemdrive%\McAfee" /s /d

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Finishing Cleanup" /f
REG ADD %KEY%\200 /VE /D "Removing installation files" /f
REG ADD %KEY%\200 /V 1 /D "CMD /C RD /S /Q %systemdrive%\Install\" /f
REG ADD %KEY%\200 /V 2 /D "CMD /C RD /S /Q %systemdrive%\OfficeTEMP\" /f
REG ADD %KEY%\200 /V 3 /D "CMD /C RD /S /Q %systemdrive%\McAfee\" /f


shutdown.exe -R -F -T 90 -c "Restarting in 1 minute and 30 seconds"

EXIT

The problem seems to come in after firefox.cmd gets called.

One other question, if I make a batch file with:

shutdown.exe -r -f -t 90 -c "Restarting in 1 minute and 30 seconds"

and open it on the desktop it doesn't work. But if I type it at the command line it works fine. Any ideas?

Thanks.


have you tried replacing the start /wait bit with

REM-------------------------------------------------------------------------------------
REM  Setup Firefox Associations
REM-------------------------------------------------------------------------------------
CALL %systemdrive%\install\Applications\Firefox\Firefox.cmd

REM----<snip>

  • Author

No I hadn't, but since I'm calling this through RunOnceEx I just added the Firefox.cmd as another item under the general "Cleaning Up" item and it seems to work ok. Thanks though. :)

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.