A new template to embed python sctipt in ms-dos script




@echo off
rem = """-*-Python-*- script
rem -------------------- DOS section --------------------
rem You could set PYTHONPATH or TK environment variables here
python -x %~f0 %*
goto exit

"""
# -------------------- Python section --------------------
import sys

print sys.argv[0]


DosExitLabel = """
:exit
rem """

Comments

Popular posts from this blog

在symbian上随心控制红外线(7) ------ 答疑篇

[FW] Philips RC-MM Protocol

listbox中使用svg图片