Sunday, April 29, 2012

Script for executing a program from windows command line


I. First set the path of the given executable home folder

SET <X VAR>=<PATH>

SET JBOSS_HOME=C:/JBOSS

II. Issue the command for executing from the shell

START cmd /C <Shell Command>

eg:
START cmd /C %JBOSS_HOME%/bin/run -c node2 -b x.y.z.a -g qaserverdomain

No comments:

Post a Comment