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.

Multiple guirunonce.... How to run one at a time?

Featured Replies

I have 7 .cmds ran at my [GUIRUNONCE] in muy winnt.sif.. But they all run at once. How can i make it so one runs, then the next and so on.

only call one from GUIRUNONCE, then call the next one when that one finishes repeating till their all done. Thats the onlt way i can think of at least.

ender341's right, I have three reboots and three GUIRUNONCE files. You run your first .cmd from cmdlines.txt and then all the others from successive .cmd files. For instance, my first is Pass1.cmd which is run from cmdlines.txt. My second .cmd, Pass2.cmd, is run from Pass1.cmd using the following lines (this includes the reboot as well):

REG ADD %KEY%\046 /VE /D "Rebooting...(Pass 1)" /f

REG ADD %KEY%\046 /V 1 /D "\"%CDROM%\$OEM$\Pass 2.cmd\"" /f

REG ADD %KEY%\046 /V 2 /D "shutdown.exe -r -f -t 0 -c \"Windows XP will now restart in 1 minute...\"" /f

My Pass3.cmd is added into the Pass2.cmd file in the same way. Works for me.

SRJ.

hmm actually you can have multiple ones if you like...the issue is getting the RunOnce key to execute with out having to reboot...this can be done tho...and has been covered many a time with in these forums.

cmdow @ /HID
@echo off

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

REG ADD %KEY% /V TITLE /D "Installing Applications Part 1" /f

REG ADD %KEY%\005 /VE /D "Adobe Reader 6" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\AdobeReader6\AR6.msi /qn" /f

REG ADD %KEY%\010 /VE /D "Alcohol 120" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\alcohol\setup.exe /qn" /f
REG ADD %KEY%\010 /V 2 /D "REGEDIT /S %systemdrive%\install\alcohol\register.reg" /f

REG ADD %KEY%\015 /VE /D "Diskeeper 8" /f
...

rundll32.exe iernonce.dll,RunOnceExProcess

REG ADD %KEY% /V TITLE /D "Installing Applications Part 2" /f

REG ADD %KEY%\005 /VE /D "QuickTime 7" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\QuickTime\setup /s" /f

REG ADD %KEY%\010 /VE /D "XP Codec Pack 3" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\XP_Codec\install.exe /qn" /f

REG ADD %KEY%\015 /VE /D "PSPad" /f
...

rundll32.exe iernonce.dll,RunOnceExProcess

The important part is:

rundll32.exe iernonce.dll,RunOnceExProcess

Since the base cmd file will populate the RunOnce reg entry...and the line above will then force every thing thats been entered into the entry to then run at that point.

  • Author

Thanks Nologic, i have the rundll32.exe iernonce.dll,RunOnceExProcess, but i parted it into 7 diffrent parts.. Sould i make it all 1 cmd?

  • Author
hmm actually you can have multiple ones if you like...the issue is getting the RunOnce key to execute with out having to reboot...this can be done tho...and has been covered many a time with in these forums.

cmdow @ /HID
@echo off

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

REG ADD %KEY% /V TITLE /D "Installing Applications Part 1" /f

REG ADD %KEY%\005 /VE /D "Adobe Reader 6" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\AdobeReader6\AR6.msi /qn" /f

REG ADD %KEY%\010 /VE /D "Alcohol 120" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\alcohol\setup.exe /qn" /f
REG ADD %KEY%\010 /V 2 /D "REGEDIT /S %systemdrive%\install\alcohol\register.reg" /f

REG ADD %KEY%\015 /VE /D "Diskeeper 8" /f
[b]...
[/b]
rundll32.exe iernonce.dll,RunOnceExProcess

REG ADD %KEY% /V TITLE /D "Installing Applications Part 2" /f

REG ADD %KEY%\005 /VE /D "QuickTime 7" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\QuickTime\setup /s" /f

REG ADD %KEY%\010 /VE /D "XP Codec Pack 3" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\XP_Codec\install.exe /qn" /f

REG ADD %KEY%\015 /VE /D "PSPad" /f
[b]...[/b]

rundll32.exe iernonce.dll,RunOnceExProcess

The important part is:

rundll32.exe iernonce.dll,RunOnceExProcess

Since the base cmd file will populate the RunOnce reg entry...and the line above will then force every thing thats been entered into the entry to then run at that point.

Are the ... important?

Run the attached file from your desktop to get the full idea of what is going on.

Its kind of messy visually...but it does what needs to be done...plus I suck at batch files.

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.