One Shortcut 2 programs

General discussion of the Project Reality: BF2 modification.
Post Reply
Cassius
Posts: 3958
Joined: 2008-04-14 17:37

One Shortcut 2 programs

Post 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?
|TG|cap_Kilgore
Image
Cp
Posts: 2225
Joined: 2006-04-17 18:21

Re: One Shortcut 2 programs

Post 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.
Image
Cassius
Posts: 3958
Joined: 2008-04-14 17:37

Re: One Shortcut 2 programs

Post by Cassius »

It does not seem to handle spaces. Guess I need to find out the MSDOS name or something.
|TG|cap_Kilgore
Image
AncientMan
Retired PR Developer
Posts: 5111
Joined: 2007-05-22 07:42

Re: One Shortcut 2 programs

Post by AncientMan »

@echo off
start "C:\Programs\Mumble\PRmumble(0.5beta).exe"
start "C:\Programs\EA GAMES\Battlefield 2\mods\pr\pr.exe"

quotes ;)
Image
Cp
Posts: 2225
Joined: 2006-04-17 18:21

Re: One Shortcut 2 programs

Post by Cp »

Wops, Knew I forgot something :D

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?
Image
AncientMan
Retired PR Developer
Posts: 5111
Joined: 2007-05-22 07:42

Re: One Shortcut 2 programs

Post by AncientMan »

No, quotes around the whole thing will be just fine :)
Image
Mj Pain
Posts: 1036
Joined: 2008-05-07 21:18

Re: One Shortcut 2 programs

Post 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.
Image
Image
Celestial1
Posts: 1124
Joined: 2007-08-07 19:14

Re: One Shortcut 2 programs

Post 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]"
Cp
Posts: 2225
Joined: 2006-04-17 18:21

Re: One Shortcut 2 programs

Post 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
:wink:
Image
Cassius
Posts: 3958
Joined: 2008-04-14 17:37

Re: One Shortcut 2 programs

Post 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?
Last edited by Cassius on 2010-10-20 17:29, edited 1 time in total.
|TG|cap_Kilgore
Image
Mj Pain
Posts: 1036
Joined: 2008-05-07 21:18

Re: One Shortcut 2 programs

Post 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
:wink:
Haha yes!!
That worked..
Thanks :smile:
Image
Image
deathadder
Posts: 12
Joined: 2010-08-30 20:39

Re: One Shortcut 2 programs

Post 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
Post Reply

Return to “PR:BF2 General Discussion”