Using subprocess() in with variable containing the DOS-cmd
问题 I not that good in programming and have a problem using the subprocess() command in Python. My program creates the following string: wsl ocrmypdf -sr -l deu "\mnt\z\dms\_inbox\Scan 2019-11-27 13.12.33.pdf" "z:\dms\_inbox\OCR_Scan 2019-11-27 13.12.33.pdf" If I use this command in my Windows 10 DOSbox it is working without issues. Now I want to start it with the following Python command: subprocess.run(cmd, shell=True, check=True, stdout=subprocess.PIPE, universal_newlines=True).decode() While