bat脚本编译py2exe

时间:2015-04-06 19:37:21

标签: python-2.7 batch-file py2exe

你好,我知道这是一个愚蠢的问题,但我需要帮助编写一个蝙蝠脚本,使一个python文件运行它然后删除它所有这很简单,但我似乎无法让它工作我的代码:

@echo off
set /p %file% = type the file you want to make to exe:  
echo from distutils.core import setup >> setup.py
echo import py2exe>> setup.py
echo setup(console=['%file%'])>> setup.py
Python-Portable.exe setup.py py2exe
pause
del "setup.py"
谢谢你!

1 个答案:

答案 0 :(得分:0)

set /p "file=type the file you want to make to exe: "

资源(必读):