赞
踩
step1:按 ctrl+r 打开终端,输入 shell:startup 进入到程序启动目录
step2:建立 xxx.bat 文件,内容如下:
- @echo off
- if "%1" == "h" goto begin
- mshta vbscript:createobject("wscript.shell").run("""%~0"" h",0)(window.close)&&exit
- :begin
- python C:\Users\Administrator\Desktop\new.py
- pause
python C:\Users\Administrator\Desktop\new.py 代表python 文件的地址。
以下这部分是为了让显示终端隐藏
@echo off
if "%1" == "h" goto begin
mshta vbscript:createobject("wscript.shell").run("""%~0"" h",0)(window.close)&&exit
:begin
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。