I am trying to open the CMD with python then get it to run a command. After lots of trial and error I tested just opening the cmd line with subprocess code below
subprocess.call('cmd', '/k')
When it brings the cmd prompt up and I try to do a simple command like ll or ls it gives me the 'ls' is not recognized as an internal or external command, operable program or batch file.
is there any way I can open CMD and get it to run a command?