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

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -