DLSS Posted September 8, 2006 Share Posted September 8, 2006 ok so i was thinking of replacing my autoruns with a batch script ... this way i can prevent things of trying to run twice (for example wen switching to system etc) but for one reason or another this wont work ... why ? and how do i fix it ? ... @echo off color 0a echo. --------------------------------------------------- echo X personal startup script X echo. --------------------------------------------------- pause start "C:Program Files (x86)LaunchyLaunchy.exe" echo started launchy start "C:Program Files (x86)Mozilla Firefoxfirefox.exe" echo started Firefox start "C:Program Files (x86)XfireXfire.exe" echo started xfire exit Quote Link to comment Share on other sites More sharing options...
Sparda Posted September 8, 2006 Share Posted September 8, 2006 Why do you want them to run on startup any way? I hate stuff running on startup, it causes expenetial slow down. Quote Link to comment Share on other sites More sharing options...
SomeoneE1se Posted September 8, 2006 Share Posted September 8, 2006 He dosn't really he's just expermenting... Now I was trying to do the same thing.. not to start anything up with the computer just for fun... but it didn't work how would I make it work? Quote Link to comment Share on other sites More sharing options...
cooper Posted September 8, 2006 Share Posted September 8, 2006 Could you be more specific about the 'not working' part? Quote Link to comment Share on other sites More sharing options...
DLSS Posted September 8, 2006 Author Share Posted September 8, 2006 Could you be more specific about the 'not working' part? sure ...instead of running the program it show's a cmd window with the name and dir of the program ... i'll make a screenshot Quote Link to comment Share on other sites More sharing options...
Uncle Toxie Posted September 8, 2006 Share Posted September 8, 2006 Try removing the quotes from the program path. Quote Link to comment Share on other sites More sharing options...
DLSS Posted September 8, 2006 Author Share Posted September 8, 2006 Try removing the quotes from the program path.then it wont work cos the path contains a space ... Quote Link to comment Share on other sites More sharing options...
sentinel Posted September 8, 2006 Share Posted September 8, 2006 Don't use the start command, just the path to the program. @echo off color 0a echo. --------------------------------------------------- echo X personal startup script X echo. --------------------------------------------------- pause "C:Program Files (x86)LaunchyLaunchy.exe" echo started launchy "C:Program Files (x86)Mozilla Firefoxfirefox.exe" echo started Firefox "C:Program Files (x86)XfireXfire.exe" echo started xfire exit Quote Link to comment Share on other sites More sharing options...
DLSS Posted September 8, 2006 Author Share Posted September 8, 2006 Don't use the start command, just the path to the program. @echo off color 0a echo. --------------------------------------------------- echo X personal startup script X echo. --------------------------------------------------- pause "C:Program Files (x86)LaunchyLaunchy.exe" echo started launchy "C:Program Files (x86)Mozilla Firefoxfirefox.exe" echo started Firefox "C:Program Files (x86)XfireXfire.exe" echo started xfire exit if u would do that it will only run the second program after u stop the previous one .... Quote Link to comment Share on other sites More sharing options...
Mick Posted September 8, 2006 Share Posted September 8, 2006 @echo off echo Starting Programs... (3) start "C:Program FilesLaunchyLaunchy.exe" echo - launchy start "C:Program FilesMozilla Firefoxfirefox.exe" echo - Firefox start "C:Program FilesXfireXfire.exe" echo - Xfire echo Finished ^ Works for me But if it doesnt work for you then just write a little launcher in C++, heres a hint ShellExecute(NULL, "open", "PATHTOYOURAPP", NULL, NULL, SW_SHOWNORMAL); Make it load from a file or maybe just do a directory listing and have your own custom startup folder anywhere on your HD, maybe even make it launch explorer before it exits and then set it as your Win32 Shell in the registry, then you can give it a cryptic name, maybe incorperate it into a switchblace package somehow. (now im just letting my imagination run away again) Quote Link to comment Share on other sites More sharing options...
melodic Posted September 8, 2006 Share Posted September 8, 2006 add the shortcuts/apps to the 'Start Up' folder maybe??? Quote Link to comment Share on other sites More sharing options...
moonlit Posted September 9, 2006 Share Posted September 9, 2006 I was gonna say what melodic said... basically though, I don't think you can specify a program to run inside quote marks, you either have to use a command to launch them (I'm not aware of such a thing) or create a launcher. Alternatively you might be able to create a folder in your drive's root and create some shortcuts in there... it's possible that you may be able to launch shortcuts from your batch file. Quote Link to comment Share on other sites More sharing options...
jool Posted September 9, 2006 Share Posted September 9, 2006 If anyone would have taken the few seconds it takes to check the syntax for the start command they would know that the first argument in quotes is used as the title of any window created by the command. When it takes your path as a window title it gets no command to run and defaults to starting another command window with the path as a title instead. So what you would want to do is actually something like this. start "" "pathtocommand" Quote Link to comment Share on other sites More sharing options...
cooper Posted September 9, 2006 Share Posted September 9, 2006 Pffff. "checking the syntax". You must be new here. Quote Link to comment Share on other sites More sharing options...
SomeoneE1se Posted September 9, 2006 Share Posted September 9, 2006 Pffff. "checking the syntax". You must be new here. 5 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.