How to pass an argument that starts with “//” to a wsh script?
问题 If I have the following script (that just prints the first argument to the console): @if (@X)==(@Y) @end /* JScript comment @echo off cscript //E:JScript //nologo "%~f0" %* exit /b %errorlevel% @if (@X)==(@Y) @end JScript comment */ WScript.Echo(WScript.Arguments.Item(0)); And I try something like C:\>test.bat "//test" I get the following error Input Error: Unknown option "//test" specified. Despite the quotes.It is taken as an option to the the windows script host. How can pass an argument