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

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -