Hi there,
I would like to ask how will I pass a parameter in vbscript using that for loop?
for /F %%* in ('cscript.exe "C:\dir_list.vbs"') do set vars=%%*
echo variables=%vars%
this works, but I have to pass some argument in the dir_list.vbs..
When I try to do something like this:
(I based on this example: [cscript test.vbs /a:"a value" "another value"])
for /F %%* in ('cscript.exe "C:\dir_list.vbs /a:"value1""') do set vars=%%*
echo variables=%vars%
it didn't work. Even tried to remove the double quotes in the value1.
It only output/echo "variables=Input" instead of "variables=value1"
Any idea how will I do it?