Create a batch file with this and then click that.
@echo off
pushd "D:\spl\v231_CCB\bin"
call splenviron.cmd -e v231_CCB
call spl start
The execution of spl
will depend if splenviron.cmd
runs and terminates, or keeps running.
Question
I have two commands which I have to run every time to open an application. How do I create a shortcut for these two commands in one shortcut. Let me give an example:
I have two commands:
D:\spl\v231_CCB\bin>splenviron.cmd -e v231_CCB
D:\spl\v231_CCB\bin>spl start
If I want to run the command 1 first and command 2 second then how do I create the shortcut according on my desktop?
Solution 2
Create a batch file with this and then click that.
@echo off
pushd "D:\spl\v231_CCB\bin"
call splenviron.cmd -e v231_CCB
call spl start
The execution of spl
will depend if splenviron.cmd
runs and terminates, or keeps running.
OTHER TIPS
splenviron.cmd -e v231_CCB && spl start
works for windows/ubuntu
If you want a shortcut, you should create a script, bat(windows) or sh(unix) file that will execute the above command. Or, as other smart people said it already, create an alias for this command :)