Board logo

标题: vbs中如何关闭程序中调用cmd命令跑出的确认对话框? [打印本页]

作者: zwxrain    时间: 2010-2-23 11:18     标题: vbs中如何关闭程序中调用cmd命令跑出的确认对话框?

vbs中如何关闭程序中调用cmd 命令跑出的确认对话框?
作者: Batcher    时间: 2010-2-23 12:51

能否把你的代码贴到顶楼看看?
作者: zwxrain    时间: 2010-2-23 13:55

代码很简单:
  1. Set WshShell=CreateObject("Wscript.Shell")
  2. WshShell.Run "regsvr32 xxxx.dll",0
复制代码
这里RegSvr32回抛出一个xxx.dll 中的DllRegisterServer 成功。对话框, 我想在vbs运行的时候,有这样的对话框自动关闭。
作者: Taurus    时间: 2010-2-24 02:27

  1. Set WshShell=CreateObject("Wscript.Shell")
  2. WshShell.Run "regsvr32 /s xxxx.dll",0
复制代码

作者: hyqiujian    时间: 2010-2-26 17:38

加个 /S 命令进行静默处理
作者: zwxrain    时间: 2010-3-2 10:38

good, many thanks !




欢迎光临 批处理之家 (http://www.bathome.net/) Powered by Discuz! 7.2