Batch file command line arguments
Posted
by Hema Joshi
on Stack Overflow
See other posts from Stack Overflow
or by Hema Joshi
Published on 2010-05-21T05:58:07Z
Indexed on
2010/05/21
7:30 UTC
Read the original article
Hit count: 337
I want to pass a command as a command line argument from one batch file to another
e.g.
first.bat
call test.bat "echo hello world" "echo welcome "
test.bat
set initialcommand=%1
set maincommand=%2
%maincommand%
%initialcommand%
© Stack Overflow or respective owner