我的bat文件如下,最后一行是最重要的。你知道吗
echo off
REG.exe Query HKLM\Hardware\Description\System\CentralProcessor\0 > checkOS.txt
Find /i "x86" < CheckOS.txt > StringCheck.txt
If %ERRORLEVEL% == 0 (
Echo "This is 32 Bit Operating system"
path =C:\PROGRA~1\MYAPP\APPBIN;C:\PROGRA~1\MYAPP\APPLIB
) ELSE (
PATH=C:\PROGRA~2\MYAPP\APPBIN;C:\PROGRA~2\MYAPP\APPLIB
Echo "This is 64 Bit Operating System"
)
myapp.exe -embed -pyfile template.py
以及模板.py你知道吗
print "Please show the print"
ask=raw_input("Type the name: ")
我的期望是,当我双击我的bat文件时,我可以看到print命令和 在某处键入命令。我怎么能这么做?你知道吗
注意:如果我只在我的系统中运行python文件我的应用程序.exe,它可以在python命令窗口中看到“Please show the print”和“Type the name:”。你知道吗
我把
myapp.exe -embed -pyfile template.py
改成了start C:\Python25\python C:\template.py
很好去!你知道吗相关问题 更多 >
编程相关推荐