
CODE: [Copy to clipboard]bat脚本的内容如下:wscript.echo inputbox("请输入一个参数","Please input the args","Hello,everybody")
CODE: [Copy to clipboard]运行bat脚本,就可以看到效果了。@echo off
for /f "delims=" %%a in ('cscript //nologo test.vbs') do set agrs=%%a
echo 输入的参数为:%agrs%
pause
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |