0

Suppose I want to launch command prompt and write different command there. How Can I do this by simply running one python script?

1 Answer 1

1

Take a look at this previous answer. Running windows shell commands with python I believe it has what you are looking for.

Sign up to request clarification or add additional context in comments.

1 Comment

when running the following command : >>> from subprocess import check_output >>> check_output("dir C :", shell =True).decode() I am getting errors like : File "C:\Users\XYZ\AppData\Local\Programs\Python\Python35-32\lib\subprocess.py", line 629, in check_output **kwargs).stdout

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.