Batch file command line arguments -


it seems '=' sign on argument splits argument two. ie. if have batch file a.bat:

echo %1 echo %2 

and call using:

a 1=2 

it give result:

1 2 

whereas want give:

1=2 first argument.

if put quotes around "1=2" works keeps quotes in %1.

any idea how 1=2 %1 ?

to remove surrounding quotes argument, include ~.

echo %~1 

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -