Greven Posted January 31, 2006 Share Posted January 31, 2006 Hello.......I've been trying to make a Runonce script to start a program at startup but I'm getting this odd and down right dumb error. I've tried everything and even on a new computer too! Here is the code and an image to.....@Echo OffSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Round Two..." /fREG ADD %KEY%\000 /VE /D "Assassin" /fREG ADD %KEY%\000 /V 1 /D "%programfiles%\Assassin\Assassin.bat" /fEXIT Link to comment Share on other sites More sharing options...
oioldman Posted January 31, 2006 Share Posted January 31, 2006 it's believes that the program assassin.bat is ina folder called assassi on D: drive in program files folder.So; Is program files on D:?I would recomend reading this and seeing if that solves your problem.RunOnceEx on unattended.msfn Link to comment Share on other sites More sharing options...
Greven Posted January 31, 2006 Author Share Posted January 31, 2006 Even using this code.....@Echo OffSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Round Two..." /fREG ADD %KEY%\000 /VE /D "Assassin" /fREG ADD %KEY%\000 /V 1 /D "%programfiles%\GSpot.exe" /fEXITI get the above error. I've also read that HOWTO over and over trying to see if I missed some little deatil. I'm missing something up somewhere. Thanks for trying tho.....Jason Link to comment Share on other sites More sharing options...
Yzöwl Posted January 31, 2006 Share Posted January 31, 2006 @ECHO OFFSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Round Two..." /FREG ADD %KEY%\000 /VE /D "Assassin" /FREG ADD %KEY%\000 /V 1 /D "\"%programfiles%\Assassin\Assassin.bat\"" /FEXIT Link to comment Share on other sites More sharing options...
Greven Posted January 31, 2006 Author Share Posted January 31, 2006 I will try that once I'm back into windows and home from work. Thank you.Jason Link to comment Share on other sites More sharing options...
oioldman Posted February 2, 2006 Share Posted February 2, 2006 Cheers Yzöwl, it's always those extra slashes, \, that get me caught out Link to comment Share on other sites More sharing options...
Greven Posted February 3, 2006 Author Share Posted February 3, 2006 Got a new error......REG ADD %KEY%\001 /VE /D "Crap Cleaner Running" /fREG ADD %KEY%\001 /V 1 /D "\"%programfiles%\CCleaner\ccleaner.exe"" /AUTO" /fOnce running this, Crap Cleaner does not run using it's /AUTO switch. But, I don't get any errors.Jason Link to comment Share on other sites More sharing options...
muiz Posted February 3, 2006 Share Posted February 3, 2006 Try the switchless installerhttp://www.msfn.org/board/index.php?showtopic=59614 Link to comment Share on other sites More sharing options...
Yzöwl Posted February 3, 2006 Share Posted February 3, 2006 The switchless installer isn't going to run the program, it's going to install it!All that is needed again is the correct placement of back-slashes as escape characters for quotation marks. 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