w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
system cannot find the specified file python subprocess

ls doesn’t exist on Windows; dir does. Furthermore, you may need to pass shell=True, since it’s built in to cmd.exe.

If it’s not a test and you just want to get the contents of a directory, use os.listdir instead.





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.