Batch : Echo Two parameters with space -
i working on batch scripting , facing problem while echo 2 variables. created file test.bat
echo %2%
echo "calling 2 paramters"
echo - %1% %2%
when calling, output comes:
test.bat 1235 899 899 "calling 2 paramters" - `12352`
now expected output must be:
1235 899
please help
alter test.bat this:
echo "calling 2 paramters" echo - %~1
and call this:
test.bat "1235 899"
subroutine , batch file arguments have %
@ beginning.
arguments delimiters need enclosed double quotes.
%~1
tilda here used dequoting.
Comments
Post a Comment