Can call
Need to use encoding CP850,old history from DOS carried forward to the terminal window,use cmder.
dir
like this in a list.Need to use encoding CP850,old history from DOS carried forward to the terminal window,use cmder.
import subprocess output = subprocess.run(['cmd', '/c', 'dir'], capture_output=True) print(output.stdout.decode('CP850'))