I want pass an parameter with special characters from vbs to batch file without enclosing it in double quotes.
vbs:
Set Shell = CreateObject("WScript.Shell")
Shell.Run "Test.bat ""0,(5306546...)"""
batch file:
@echo off
echo %1
pause > NUL
My goals is the output:
0,(5306546...)
And not:
"0,(5306546...)"
If the vbs were:
Set Shell = CreateObject("WScript.Shell")
Shell.Run "Test.bat 0,(5306546...)"
L'output of the batch file would be:
0
This question is different because I didn't know the %~1 command before this answer.