Python Forum
Trying something that may not be possible?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trying something that may not be possible?
#5
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! Wall
Reply


Messages In This Thread
RE: Trying something that may not be possible? - by fredep57 - Mar-17-2023, 02:43 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020