August 14, 200521 yr I have cmd file right now and its intalling programs.... lets call it 1.cmdnow.... what I want to do is when 1.cmd finishes I want the computer to restart... and after that I want that 2.cmd will restart its files....orto write a command that in some point of the 1.cmd file the comp. will restart and after the restart it will continue the file....this is very important question and can help me much.... Edited August 14, 200521 yr by CompMaster
August 14, 200521 yr You must place your cmd in the RunOnceEx registry key ... in each file you set the next cmd to execute ... for reboot use "shutdown -r -t xx" (where xx are the seconds)Goodbye.
August 14, 200521 yr Author RunOnceEx registry key ?can you give me an example please? (I'm new in all of this)
August 14, 200521 yr this is a page from the unattended guide that explains about runonceexhttp://unattended.msfn.org/intermediate/me...s/runonceex.htm
August 14, 200521 yr hmm, It don't have to be RunoncEX Heres what I do to start something after the reboot.In this example I'm opening the Fonts folder which register's the Fonts I have added.Shouldn't be too hard to modify that to call your *.cmd fileJust add it to your cleanup.cmd right before the ShutdownNOTICE: Its not RunoncEX but simply Runonce I have experimented and added like 10 things there as a test, all work just fine as long as they are correct Path's. This also goes to the Current User and can be applied to other Users.REG ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Runonce /V RegisterFonts /D "%SystemRoot%\explorer.exe /e,/root,%systemroot%\Fonts"BTW, The reason I don't use Runoncex is I have had occasions where certain software added something there and i don't want to Jack with it...Bing Bada Boom Edited August 14, 200521 yr by maxXPsoft
Create an account or sign in to comment