1.

Solve : Running shortcut with target?

Answer»

I need to run a shortcut or program to load so I don't have to manually access it. The file I am using is a batch file to load all my start programs in the morning. I use /pause between each program to give each one time to load so I can easily show in what ORDER I open my programs if a issue arises. It helps to be consistent.

The only problem software I have is one that has something like this:

"C:\Program Files\program1.exe" /launch "Program 2"

How in the world can I get a batch file to load it? I would even be willing to make a short cut but the short cut gives that PLUS a separate "start in" folder.

Thanks all! Quote from: armymil on June 24, 2010, 06:52:49 AM


"C:\Program Files\program1.exe" /launch "Program 2"


I have not tested the following:

( Try a different placement to the quote symbols. )

1) "C:\Program Files\program1.exe  /launch Program 2"

or
2) Use Call instead of Start.  You might call a Label and not another batch.

Good Luck

:label
"C:\Program Files\program1.exe  /launch Program 2"
I tried them both. It didnt seem to work.

The program 1 is softgrid. The program 2 is software that LOADS from it. cd C:\Program Files\Microsoft Application Virtualization Client\
call "sfttray.exe" "Program 2"
pause


This solved issue. The call feature HELPED.


Discussion

No Comment Found