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 -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -