How do I compile my Python program to a .jar with Jython?

How to run a command in cmd from your python program?

  • i'm a nooby so please explain in detail. I just finished a tutorial for python, and i feel that i only know the bare basics or less, so take that in mind when you answer. when i open the IDLE (python GUI), it opens the thing where you can write programs and not save. when i type my command into this place the command works fine. BTW, i use the following command: import subprocess subprocess.call(['C:\\windows\\system3… but when i type type the command into the section where you can save your projects it either doesn't work or cmd doesn't stay popped up long enough for me to notice. so i have three questions: 1. how to i get cmd to run in my saved program?? 2. is cmd already running, and i just can't see it. (i already tried raw_input('press<enter>') and all that happened was, a window that looked like cmd came up but it wasn't cmd and it said something like python27 bla bla bla) 3. after i get the program written that opens cmd, what type of code needs to be added so that i can add commands to cmd from the python program. sorry to be so confusing. if you have any questions heres my email: [email protected]

  • Answer:

    First off run the phyton under administrative priviledges and run the command line under administrative privileges as well.

Jacob at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.