<PY>今天研究了一下批处理,py拖动生成单文件exe

来源:互联网 发布:网络新词及意思 编辑:程序博客网 时间:2024/06/05 08:49

::py2exe.bat,拖动生成

::已安装pywin32,PyInstaller

C:\Python27\python  C:\PyInstaller\pyinstaller.py -F %1

::提取到当前目录

copy dist\%~n1.exe .\               

::删除多余目录

rd build /q /s                     

rd dist  /q /s

del %~n1.spec /q

::pause


0 0