- @echo off
- (
- echo Wsh.Echo "ip="^&InputBox("请输入IP地址:","提示",""^)
- echo Wsh.Echo "port="^&InputBox("请输入端口号:","提示",""^)
- echo Wsh.Echo "password="^&InputBox("请输入密码:","提示",""^)
- )>"%temp%\tmp.vbs"
- for /f "delims=" %%a in ('cscript "%temp%\tmp.vbs" //nologo //e:vbs') do (
- echo,set "%%a"
- )
- del /q "%temp%\tmp.vbs"
- pause
复制代码
|