&
" do, we can do the following from the Windows command line,
start /B cmd /C call program [arg1 [...]]
We explain each part as follows,
-
/B
is the command line option to thestart
command. The documentation of the commandstart
states the following,/B
. Start application without creating a new window. The application has ^C handling ignored. Unless the application enables ^C processing, ^Break is the only way to interrupt the application.
-
cmd
is the program to run from the command line, i.e.,C:\Windows\System32\cmd.exe
-
/C
is the command line option given tocmd
. The manual states,-
/C
. Carries out the command specified by string and then terminates
-
-
call
is a command tocmd
, it is to "call one batch program from another." The program does not have to be batch program, and can be any executable file. -
program
is the program to be called by thecall
command. -
arg1 [...]
are optional one or more command line arguments given toprogram
.
HelloWorld
from the command line in background, we would do,
start /B cmd /C call java HelloWord
A Unix equivalent of this command would be
java HelloWorld &
.
No comments:
Post a Comment