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:

  1. D:\spl\v231_CCB\bin>splenviron.cmd -e v231_CCB

  2. 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?

Was it helpful?

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 :)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top