Background
I use the command dir/s in batch files all the time. But, I am unable to call this using python. NOTE: I am
dir/s
As it's an inbuilt part of the command line you need to run it as:
import subprocess subprocess.call("cmd /c dir /s")