Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Execute 2 shortcuts with 1 command 2

Status
Not open for further replies.

cjackson

Technical User
Dec 1, 2000
44
US
Hi everyone,

I have two shortcuts that I run one after the other, always in the same order.

Does anyone know of a way of doing this from one command?

Cheers

Chris
 
A batch file sounds good but I'm not too sure how to do it, any destructions?

Cheers

Chris
 
Copy the target box commands from both shortcuts into a .bat (eg, test.bat) file on separate lines. Double click test.bat file to run.

If there are dependencies (ie, second process needs something from first process before running), you might need to put a test in the batch file before it runs second job.
 
Thanks wolluf,

The shortcuts I want to use call the same .exe but 'Start In' different places, how can I do that in a batch file?

Also part of the batch need to run a .reg file to update the registry, again how would I do that?

Cheers

Chris
 
Set up start folder using CD (change directory) command before running exe.
Eg

C:\>CD \folder1
c:\folder1>apprun.exe (or full path to this if its not on windows path - eg "C:\Program Files\Appfolder\apprun.exe")
c:\folder1>cd \folder2
c:\folder2>apprun.exe

If you need to change drive letter too, just type new drive letter first.

You can use regedit to run a .reg file, eg

regedit /S test.reg

(/S for 'silent mode', so you don't get popups)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top