Can %* be used to assign values to a list or array in a batch file? -


%1 first command line parameter, %2 second command line parameter , on till %9.

%* refers arguments. there way assign these values list done in shell script mentioned below ?

argv=("$@") $@ refers command line arguments in shell script.

something this? :

@echo off  setlocal enabledelayedexpansion set arg_number=0 %%a in (%*) (     set "args[!arg_number!]=%%a"     set /a arg_number=arg_number+1 )  echo %args[0]% echo %args[1]% echo %args[2]% 

Comments

Popular posts from this blog

sql - can we replace full join with union of left and right join? why not? -

javascript - Parallax scrolling and fixed footer code causing width issues -

iOS: Performance of reloading UIImage(name:...) -