可以,在vbs中用wshell.run执行脚本文件,前提是你系统中已部署好pyhton:
Set oShell = WScript.CreateObject ("WSCript.shell")oShell.run "s.py"
Set oShell = Nothing
效果如下:
单纯 bat 本身并不具备隐藏运行的功能 不过用vbs调用bat就可以实现 Set ws = CreateObject("Wscript.Shell") ws.run "cmd /c 2002.bat",vbhide 这个就是vbs调用同目录下 名为 2002.bat 的批处理隐藏运行