Mar-17-2023, 02:43 AM
So, I tried this using the suggestion from snippsat with a modification that I wanted to start from the root.
Here is what I used:
subprocess.run('dir c:\\*.* /S /O:N /B /L > directorytest0.txt')
and this is the "error" that came back:
dir: cannot access 'c:\*.*': No such file or directory
dir: cannot access '/S': No such file or directory
dir: cannot access '/O:N': No such file or directory
dir: cannot access '/B': No such file or directory
dir: cannot access '/L': No such file or directory
dir: cannot access '>': No such file or directory
dir: cannot access 'directorytest0.txt': No such file or directory
so, what am I doing wrong???? Completely stumped.....but at my age that is an easy task!
Here is what I used:
subprocess.run('dir c:\\*.* /S /O:N /B /L > directorytest0.txt')
and this is the "error" that came back:
dir: cannot access 'c:\*.*': No such file or directory
dir: cannot access '/S': No such file or directory
dir: cannot access '/O:N': No such file or directory
dir: cannot access '/B': No such file or directory
dir: cannot access '/L': No such file or directory
dir: cannot access '>': No such file or directory
dir: cannot access 'directorytest0.txt': No such file or directory
so, what am I doing wrong???? Completely stumped.....but at my age that is an easy task!
