Double Click Python Script Launches CMD Window

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • maximus tee
    New Member
    • Dec 2010
    • 30

    Double Click Python Script Launches CMD Window

    hi,

    initially i was running on Python 25 and when i double click a python script, it will launch the CMD DOS window. After that i installed Python 31, now my script whenever i double click it, it will launch a Windows Cannot Open this file window and ask me to choose which program to open the script. pls advise me how to get back to my original configuration so that when i double click the python script, it will launch the CMD window. i had uninstalled Python 31 and using Python 25 now, but same thing still happen.

    thanks beginner
  • bvdet
    Recognized Expert Specialist
    • Oct 2006
    • 2851

    #2
    Set the file type association to the python executable file. In Windows XP, it can be done in Windows Explorer Tools/Folder Options/File Types and Control Panel/Folder Options/File Types.

    Comment

    • maximus tee
      New Member
      • Dec 2010
      • 30

      #3
      thanks for your reply. i tried this method. what should i associate the file to? 1) i associated the .py to python interpreter and everytime i double click it it will prompt out a windows can't find file. 2) i associate the .py to MS DOS and when i double click to the python script, it will launch cmd window to that path.
      however, this is different from what i had last time. Last time, when i double click on python script .py it will launch CMD window and goes off quickly. How do i get this again?
      thanks in advance.

      Comment

      Working...