用vbs脚本实现运行DOS批处理不再出现黑屏cmd窗口
时间:2021-04-18 09:47:44|栏目:VBS|点击: 次
DOS批处理不再黑屏的vbs脚本
DIM objShell
n] h/K,cQ'xe0set ōbjShell=wscrīpt.createObject("wscrīpt.shell")linux博客? w?&Up ~
iReturn=objShell.Run("cmd.exe /C\\192.168.1.61\idisk\boot\cfg.ini", 0, TRUE)linux博客O&ped3T5R!U#Xqs
iReturn=objShell.Run("cmd.exe /Cmd e:\b", 0, TRUE)
将上面的内容复制,
:f2V0cc(}7OGj n5L^0\\192.168.1.61\idisk\boot\cfg.ini改成你自己要运行的批处理名字
2T4|K Ge0保存为vbs文件(例如:1.vbs)linux博客[ P/I(\C3v$a J
然后运行看下效果吧~linux博客^b+e2R p'~l
将boot.txt下载后改名为.exe 运行后导入注册表
并修改copy \\192.168.1.61\idisk\boot\*.* c:\boot为实际路径
boot1 脚本
DIM objShell
^ f rZ"he[9t1^'{0set ōbjShell=wscrīpt.createObject("wscrīpt.shell")linux博客 q-}5mxh Ny]KA7f
iReturn=objShell.Run("cmd.exe /Cc:\boot\ARPClient.exe", 0, TRUE)
]r4{kV {.T3K e0
DIM objShell
n] h/K,cQ'xe0set ōbjShell=wscrīpt.createObject("wscrīpt.shell")linux博客? w?&Up ~
iReturn=objShell.Run("cmd.exe /C\\192.168.1.61\idisk\boot\cfg.ini", 0, TRUE)linux博客O&ped3T5R!U#Xqs
iReturn=objShell.Run("cmd.exe /Cmd e:\b", 0, TRUE)
将上面的内容复制,
:f2V0cc(}7OGj n5L^0\\192.168.1.61\idisk\boot\cfg.ini改成你自己要运行的批处理名字
2T4|K Ge0保存为vbs文件(例如:1.vbs)linux博客[ P/I(\C3v$a J
然后运行看下效果吧~linux博客^b+e2R p'~l
将boot.txt下载后改名为.exe 运行后导入注册表
并修改copy \\192.168.1.61\idisk\boot\*.* c:\boot为实际路径
boot1 脚本
DIM objShell
^ f rZ"he[9t1^'{0set ōbjShell=wscrīpt.createObject("wscrīpt.shell")linux博客 q-}5mxh Ny]KA7f
iReturn=objShell.Run("cmd.exe /Cc:\boot\ARPClient.exe", 0, TRUE)
]r4{kV {.T3K e0
上一篇:vbs下用Shell.Application获取图片分辨率
栏 目:VBS
本文标题:用vbs脚本实现运行DOS批处理不再出现黑屏cmd窗口
本文地址:http://www.codeinn.net/misctech/103395.html