main.bat contains:
cscript treat.vbs /a:"the name of file"
REm: the name of file contains many spaces
treat.vbs contains:
dim param: param_input=Wscript.Arguments.Named("a")
msgbox param_input
shell.run "second.bat" param_input & " " & ""myfile.out""
second.bat contains:(just for purpose of test)
echo %1
echo %2
When running the main.bat, msgbox shows a popup with all the name file (including all spaces contained within the name of file, while the echo message echo %1 shows the name of file cutting down.
How can I do to workaround that, please?