Jump to content

can anyone tell me why this wont work and how to fix it ?


DLSS
 Share

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 ....

Link to comment
Share on other sites

@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)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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"

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...