用vbs脚本实现运行DOS批处理不再出现黑屏cmd窗口
程序员文章站
2022-03-20 14:04:10
dos批处理不再黑屏的vbs脚本 dim objshell n] h/k,cq'xe0set ōbjshell=wscrīpt.cre...
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