主程序:run_main.bat
python D:\jhyPro\python_test\test.py
rd /S/Q D:\jhyPro\myFiles_test\.svn
WinRAR a -r -ep1 D:\jhyPro\myFiles_test.zip D:\jhyPro\myFiles_test
rd /S/Q D:\jhyPro\myFiles_test
后台执行脚本
DIM objShell
set objShell=wscript.createObject("wscript.shell")
iReturn=objShell.Run("cmd.exe /C D:/jhyPro/python_test/run_main.bat", 0, TRUE)
保存命名为run.vbs
加入系统环境变量,然后 ctrl +r 输入run
该脚本涉及使用Python运行主程序,并通过WinRAR压缩和删除特定目录。此外,它利用Wscript创建后台任务,将批处理命令绑定到VBScript文件,并添加到系统环境变量以便快速启动。

被折叠的 条评论
为什么被折叠?



