Python run shell command over specific folder

Published: 14/01/2020
Python run shell command over specific folder
Source: STACKOVERFLOW.COM

First of all, my company uses a 2.7.x version of python. And I want to run a shell command on a specific folder. $ cd path/to/folder & command And I also get the result strings. I've tried like below. result = subprocess.Popen("cd path/to/folder & command") But there is an error. File "C:\Python27_x64\lib\subprocess.py", line 711, in __init__ errread, errwrite) File "C:\Python27_

Read more
Related news
Comment
FACEBOOK