Forum Home
Press F1
 
Thread ID: 58279 2005-05-27 06:53:00 can you make an icon shortcut to 2 different programs? supersaiyanplough (8098) Press F1
Post ID Timestamp Content User
358865 2005-05-27 06:53:00 can you make it so when you double-click on a shortcut on the desktop, it opens two programs at once? and if so, how? win98SE supersaiyanplough (8098)
358866 2005-05-27 06:55:00 Make a .bat script and make the .bat script run two different apps

Read up on making Batch Scripts - Google is your friend.
Chilling_Silence (9)
358867 2005-05-27 07:05:00 can you make it so when you double-click on a shortcut on the desktop, it opens two programs at once? and if so, how? win98SE

You might be able to put both commands on one line separated with a semicolon ";" (in the Command line of the icon's Properties).
Graham L (2)
358868 2005-05-27 08:46:00 So far as I am aware the only way you can have a single shortcut to launch more than one executable file is to, as the moderator suggested above, use a batch file (.BAT).

For example, you can right click on an empty spot on your desktop and select New | Text Document

From here type as follows (substituting the path and file(s) you want:

@echo off

START "" "C:\Program Files\Ahead\Nero\nero.exe" /w
START "" "C:\Documents and Settings\User\Desktop\Building 1.doc"
START "" "%SystemRoot%\System32\spider.exe"

CLS

At this point select File | Save as and type a name you want for your batch file then add .BAT to the end of name.

For example, Shortcut.BAT

Note: The speech marks in red must be present in each line beginning with START. However, the speech marks surrounding the path and name of the programme/file you wish to open only need to be there when there is a space in any portion of the path or filename. For example:

If the path was C:\windows and the file name was Joe.exe then you could write:

START "" c:\windows\Joe.exe

But if Joe.exe was in c:\windows\joes files you would need to include the speech marks around the path and file name because of the space in the folder name called joes files. Thus command would read:

START "" "c:\windows\joes files\Joe.exe"

Likewise, if the file name has a space in it, such as Buidling 1.doc you must include the speech marks.

Finally, if you use the MS-Dos abbreviation for a folder name or file name you can exclude the speech marks around a path and file name. For example if Joe.exe reside inside Temporary Internet Files folder the two possible commands for this would be:

START "" "c:\windows\Temporary Internet Files\Joe.exe"

or

START "" c:\windows\tempor~1\Joe.exe where tempor~1 is the MS-Dos name for Temporary Internet Files, thus avoiding those spaces that require the double speech marks to be present.

Regards,

Timothy
AlphabetSoup (8128)
358869 2005-05-27 09:03:00 To do it in a nicer fashion I suggest you use autoit v3 (www.autoitscript.com)

the contents of an autoit script would look like this:

Run("Notepad.exe", "", @SW_MAXIMIZE)
Run("C:\Program Files\Microsof Office\Office\winword.exe","",@SW_MAXIMIZE)


You can create a nice executable with your own icon.
The autoit documentation is nice and full of examples...
gibler (49)
1