[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖
  1. dim fname, oWshShell
  2. Set oWshShell = CreateObject("WScript.Shell")
  3. fname = InputBox("Enter your name:")
  4. fname = """" & fname & """"
  5. oWshShell.Run "gogo.exe " & fname
复制代码
如果gogo.exe能处理命令行参数

QQ 20147578

TOP

fname = InputBox("Enter your name:")
set wshshell = CreateObject("Wscript.shell")
wshshell.run "c:\test\gogo.exe"
wscript.sleep 1000
wshshell.sendkeys fname
wshshell.sendkeys "{enter}"
wscript.quit

QQ 20147578

TOP

返回列表