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.

Winnt / Cmd / Runonce Questions

Featured Replies

I have this in my Winnt.sif. I don't understand why Start.cmd is not run after the setup and only after another restart. What am i missing?

[GUIRunOnce]
command7= "%SystemDrive%\DP\S\Sound_Control_Panels_1.cmd"
command8= "%SystemDrive%\DP\S\Sound_Control_Panels_2.cmd"
command9= "cmd.exe /c RD /S /Q %SystemDrive%\DP"
%systemdrive%\start.cmd

what is the sign for % in a CMD file? Because % is used as a operator in CMD file and i am trying to remove the link for Alcohol 120%

DEL "%AllUsersProfile%\Desktop\Alcohol 120%.lnk"

Another problem is with program files. %Programfiles% works but when i stick them all in it will generate a Error message stating C:\Program not found. I found out if i use [ "%Programfiles%command" -switch ] then it will work in CMD. So i am wondering what i need to do in Runonce.

REG ADD %KEY%\025 /VE /D "Clean Up" /f
REG ADD %KEY%\025 /V 1 /D "%PP%%ProgramFiles%\Mozilla Thunderbird\thunderbird.exe -silent -nosplash -setDefaultMail" /f
REG ADD %KEY%\025 /V 2 /D "%PROGRAMFILES%\Mozilla Firefox\firefox.exe -silent -nosplash -setDefaultBrowser" /f


what is the sign for % in a CMD file? Because % is used as a operator in CMD file and i am trying to remove the link for Alcohol 120%

Since it parses the first % just use "Alcohol 120%%"

or you could just do

DEL "%AllUsersProfile%\Desktop\Alcohol*.lnk"

that'll delete every shortcut on the desktop that starts with alcohol.

  • Author

Thanks. What about the first question? any ideas?

Edit: And i edited a 2nd question as well.

start.cmd importing RunOnceEX entries?

As for the %ProgramFiles% problem, you'll need to enclose the path in quotes, but in RunOnceEX you'll need to escape the quotes ( \" )

  • Author
start.cmd importing RunOnceEX entries?

As for the %ProgramFiles% problem, you'll need to enclose the path in quotes, but in RunOnceEX you'll need to escape the quotes ( \" )

Yes. Start.cmd has all my RunonceEX entries. ( Sorry my first time using RunonceEX method , Anything wrong? )

2. So it would be like?

"\"%ProgramFiles%\Mozilla Thunderbird\thunderbird.exe\" -silent -nosplash -setDefaultMail"

1. Yes, you're doing it wrong. Simlest fix is to add:

rundll32.exe iernonce.dll,RunOnceExProcess

at the end of the START.CMD file just before the EXIT.

2. Correct

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.