Forum Home
Press F1
 
Thread ID: 24326 2002-09-08 10:22:00 Shortcuts to more than 1 app? mellingham (1769) Press F1
Post ID Timestamp Content User
77675 2002-09-08 10:22:00 Is it possible to make a shortcut that will open more than one programat the same time? If so, what is the context of the shortcut path?

I hope someone can help me here...

Matt
mellingham (1769)
77676 2002-09-08 10:58:00 Only way I know to do it would be to create a .bat file with the command lines for each program you wanted opened and have the shortcut point to the .bat file. antmannz (28)
77677 2002-09-08 11:00:00 You could always try creating a batch file (*.bat).
Edit a new txt doc in notepad
you'll need to put in the command lines for both programs (Find it in both different shortcuts) and see if that works. Both will need to be on seperate lines. You might need a seperate code for file running but it should work just like that.

Cheers

Chilling_Silence
Chilling_Silence (9)
77678 2002-09-08 11:01:00 Drat, Beat me too it, I knew I shouldn't have been typing in MSN... hehe Chilling_Silence (9)
77679 2002-09-08 11:10:00 I had started doing that...made 2 batch files for the apps as such:

<<DW>>
@ECHO OFF
CD C:\Program Files
CD Macromedia
CD Dreamweaver UltraDev 4
UltraDev.exe
@ECHO OFF
CALL Timer.bat

then...

<<timer>>
@ECHO OFF
CD C:\Program Files
CD Project Timer
ProjectTimer.exe
@ECHO OFF

The first bat calls the second...but not quite working. Whats wrong??

Thanks
mellingham (1769)
77680 2002-09-08 11:24:00 Just place the whole lot in one, and call the entire command line:
@echo off
c:\program files\macromedia\dreamweaver ultradev 4\ultradev.exe
c:\program files\project timer\projecttimer.exe
@echo off
You may need to place those command lines in speech marks to make them work, or use the "c:\progra~1\etc" trick
antmannz (28)
77681 2002-09-08 11:31:00 if you want both programs to run simultaneously then place START in front of each command in 'antmannz' command procedure reply... e.g.

@echo off
START c:\program files\macromedia\dreamweaver ultradev 4\ultradev.exe
START c:\program files\project timer\projecttimer.exe
@echo off


For more info re the START command:

Starts a separate window to run a specified program or command.

START ["title"] [/Dpath] [/I] [/MIN] [/MAX] [/SEPARATE | /SHARED]
[/LOW | /NORMAL | /HIGH | /REALTIME | /ABOVENORMAL | /BELOWNORMAL]
[/WAIT] [/B] [command/program]
[parameters]

"title" Title to display in window title bar.
path Starting directory
B Start application without creating a new window. The
application has ^C handling ignored. Unless the application
enables ^C processing, ^Break is the only way to interrupt
the application
I The new environment will be the original environment passed
to the cmd.exe and not the current environment.
MIN Start window minimized
MAX Start window maximized
SEPARATE Start 16-bit Windows program in separate memory space
SHARED Start 16-bit Windows program in shared memory space
LOW Start application in the IDLE priority class
NORMAL Start application in the NORMAL priority class
HIGH Start application in the HIGH priority class
REALTIME Start application in the REALTIME priority class
ABOVENORMAL Start application in the ABOVENORMAL priority class
BELOWNORMAL Start application in the BELOWNORMAL priority class
WAIT Start application and wait for it to terminate
command/program
If it is an internal cmd command or a batch file then
the command processor is run with the /K switch to cmd.exe.
This means that the window will remain after the command
has been run.

If it is not an internal cmd command or batch file then
it is a program and will run as either a windowed application
or a console application.

parameters These are the parameters passed to the command/program


Babe.
Babe Ruth (416)
77682 2002-09-08 11:38:00 got it in the end thanks...for your reference....

@echo off
START c:\progra~1\macrom~1\dreamw~1\ultradev.exe
START c:\progra~1\projec~1\projecttimer.exe
@echo off

Damn short filenames!

Thanks for all your help everybody.
Matt
mellingham (1769)
77683 2002-09-09 04:12:00 Yeah, if it's longer than 8 characters long, try taking the first 6 letters and then putting a "~1" after it, minus the speach marks. If there's a space withing those six, ignore it.

I think that's what I did last time.

You don't even need @Echo off, it could simply consist of the follwing:
c:\progra~1\macrom~1\dreamw~1\ultradev.exe
c:\progra~1\projec~1\projecttimer.exe

that would work too!


Chilling_Silence
Chilling_Silence (9)
1