title: bat script to compile py2exe
body: <p>hello i know this is kind of a dumb question but i need help writing a bat script to make a python file run it then delete it all of this is simple but i cant seem to get it to work my code:</p>
  
  <pre><code>@echo off
  set /p %file% = type the file you want to make to exe:  
  echo from distutils.core import setup &gt;&gt; setup.py
  echo import py2exe&gt;&gt; setup.py
  echo setup(console=['%file%'])&gt;&gt; setup.py
  Python-Portable.exe setup.py py2exe
  pause
  del "setup.py"
  </code></pre>
  
  <p>thank you!</p>