运行bat时隐藏cmd窗口
新建一个shrjj.vbs文件,文件内容为:
Set ws = CreateObject("Wscript.Shell") ws.run "cmd /c E:/SublimeWorks/exe/shrjj.bat",vbhide
双击shrjj.vbs就可以调用shrjj.bat,并且不会弹出cmd窗口;
有个问题:双击shrjj.vbs文件会闪过cmd窗口,有待解决;
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/2532.html