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
Related Q & A:
- How To Run A Command In Ubuntu?Best solution by Yahoo! Answers
- How to run a external program in PHP?Best solution by Stack Overflow
- How to play a sound after a command has finished its execution?Best solution by Ask Ubuntu
- How to run an executable from within a c program?Best solution by Stack Overflow
- How to run a commercial laundry?Best solution by professional.electrolux.co.uk
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.