Mikep7779 Posted January 10, 2006 Share Posted January 10, 2006 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. Link to comment Share on other sites More sharing options...
ender341 Posted January 10, 2006 Share Posted January 10, 2006 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. Link to comment Share on other sites More sharing options...
SRJ Posted January 10, 2006 Share Posted January 10, 2006 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)" /fREG ADD %KEY%\046 /V 1 /D "\"%CDROM%\$OEM$\Pass 2.cmd\"" /fREG ADD %KEY%\046 /V 2 /D "shutdown.exe -r -f -t 0 -c \"Windows XP will now restart in 1 minute...\"" /fMy Pass3.cmd is added into the Pass2.cmd file in the same way. Works for me.SRJ. Link to comment Share on other sites More sharing options...
Mikep7779 Posted January 10, 2006 Author Share Posted January 10, 2006 Can i run that from gui run once? Link to comment Share on other sites More sharing options...
Nologic Posted January 10, 2006 Share Posted January 10, 2006 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 offSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications Part 1" /fREG ADD %KEY%\005 /VE /D "Adobe Reader 6" /fREG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\AdobeReader6\AR6.msi /qn" /fREG ADD %KEY%\010 /VE /D "Alcohol 120" /fREG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\alcohol\setup.exe /qn" /fREG ADD %KEY%\010 /V 2 /D "REGEDIT /S %systemdrive%\install\alcohol\register.reg" /fREG ADD %KEY%\015 /VE /D "Diskeeper 8" /f...rundll32.exe iernonce.dll,RunOnceExProcessREG ADD %KEY% /V TITLE /D "Installing Applications Part 2" /fREG ADD %KEY%\005 /VE /D "QuickTime 7" /fREG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\QuickTime\setup /s" /fREG ADD %KEY%\010 /VE /D "XP Codec Pack 3" /fREG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\XP_Codec\install.exe /qn" /fREG ADD %KEY%\015 /VE /D "PSPad" /f...rundll32.exe iernonce.dll,RunOnceExProcessThe important part is:rundll32.exe iernonce.dll,RunOnceExProcessSince 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. Link to comment Share on other sites More sharing options...
Mikep7779 Posted January 11, 2006 Author Share Posted January 11, 2006 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? Link to comment Share on other sites More sharing options...
Nologic Posted January 11, 2006 Share Posted January 11, 2006 One file would be best. Link to comment Share on other sites More sharing options...
Mikep7779 Posted January 11, 2006 Author Share Posted January 11, 2006 Thanks, ill add it all to the same and test it.. Thanks! Link to comment Share on other sites More sharing options...
Nologic Posted January 11, 2006 Share Posted January 11, 2006 Your welcome and good luck. Link to comment Share on other sites More sharing options...
Mikep7779 Posted January 11, 2006 Author Share Posted January 11, 2006 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 offSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications Part 1" /fREG ADD %KEY%\005 /VE /D "Adobe Reader 6" /fREG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\AdobeReader6\AR6.msi /qn" /fREG ADD %KEY%\010 /VE /D "Alcohol 120" /fREG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\alcohol\setup.exe /qn" /fREG ADD %KEY%\010 /V 2 /D "REGEDIT /S %systemdrive%\install\alcohol\register.reg" /fREG ADD %KEY%\015 /VE /D "Diskeeper 8" /f[b]...[/b]rundll32.exe iernonce.dll,RunOnceExProcessREG ADD %KEY% /V TITLE /D "Installing Applications Part 2" /fREG ADD %KEY%\005 /VE /D "QuickTime 7" /fREG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\QuickTime\setup /s" /fREG ADD %KEY%\010 /VE /D "XP Codec Pack 3" /fREG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\XP_Codec\install.exe /qn" /fREG ADD %KEY%\015 /VE /D "PSPad" /f[b]...[/b]rundll32.exe iernonce.dll,RunOnceExProcessThe important part is:rundll32.exe iernonce.dll,RunOnceExProcessSince 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? Link to comment Share on other sites More sharing options...
Nologic Posted January 11, 2006 Share Posted January 11, 2006 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now