|
Answer» Trying to start an application from within a .bat file with a parameter, and not having any luck. I can start the program fine without the parameter using
START "" "C:\Ham Radio\JT_Alert 2.0\JT-Alert.exe"
But need to start it with the parameter /wsjtx. Have tried every combination of this parameter I can think of, and THOUGHT that
START "" "C:\Ham Radio\JT_Alert 2.0\JT-Alert.exe"/wsjtx
would do it, but no go. Tried it with & without the quotes.
Can someone please point out what I'm missing?
Thanks! Doc START "" "C:\Ham Radio\JT_Alert 2.0\JT-Alert.exe /wsjtx"That's what I thought, but when I use that configuration I get the error message "Can't find xxxxxxxxx".
Without the parameter the program starts fine, but needs the parameter added to open the secondary program.
Thanks Doc Try it with a space after the quoted exe name.
Code: [Select]START "" "C:\Ham Radio\JT_Alert 2.0\JT-Alert.exe" /wsjtx or add the startin program folder if the executable is looking for a secondary file.Tried it both ways just edited my reply above.What HAPPENS when you try launching it from the command prompt when you are in the application directory. Do a change directory to the application directory from the cmd prompt and then try launching it.
CD "C:\Ham Radio\JT_Alert 2.0" JT-Alert.exe /wsjtxI actually downloaded version 2.2.2 and this is what I got - as I don't have a call sign to enter I didn't go any further.
It WORKS the same whether you input the command at the prompt or RUN it in a batch.
(I notice that this version went to a normal Windows install folder)
Sorry for the delay - had to go out for a bit.
Changing to the directory where the app is actually located did the trick! then I was able to simply enter
jt-alert.exe /wsjtx
and it started as it should.
Both apps look the same until a call sign is entered. From then on, the parameter "/wsjtx" opens a secondary app that is different than the primary. These are both helper apps that each work with different "MAIN" programs.
Many thanks for the help!!! Much appreciated!!
Doc
|