windows - command line argument to a batch file -
I want to run a script in the command line as follows:
xxxx Bat param1 = some 1 absolute 2 = some 2 param3 = saomething3
I can do this with the following script:
close Elko cls @echo first , Second argument:% 1% 2 set% 1 set% 2 @ a ech oa :::: ak bit b ::::% b%
I use the following I will run the script on the command line, the command
xxx.bat "a = 1" "b = 2"
My question is, what is the I can pass the logic without quotation and I use the namespace in the script without the following:
set% 1 set% 2
If you want to enable the script to be able to use them, then you have to set the variable inside the script. However, you can pass only the values in the script like this:
@echo off cls param1 =% 1 set param2 =% 2
Also, unless there is no free space in the argument, you do not need quotation marks.
Comments
Post a Comment