联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
@echo off >test.vbs echo set File=WScript.Arguments >>test.vbs echo WScript.echo "传递参数",File.Count,"个" >>test.vbs echo WScript.echo "第一个参数",File(0) >>test.vbs echo WScript.echo "第二个参数",File(1) set xxx=abc set xxxxxx=efg test.vbs %xxx% %xxxxxx% pause
>test.vbs echo WScript.echo "参数" for /f "delims=" %%i in ('"cscript //nologo test.vbs"') do echo %%i pause