Export or print Directory Listing

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way to print the directory listing to a file? Something like the
DOS command dir>prn or dir >filename. We're trying to clean up some shared
drives and need to maintain a list of directories and last update dates.
 
cmw said:
Is there a way to print the directory listing to a file? Something like the
DOS command dir>prn or dir >filename. We're trying to clean up some shared
drives and need to maintain a list of directories and last update dates.

You've good the right idea:

dir /s "E:\Some Folder" > c:\files.txt
 
You've good the right idea:

dir /s "E:\Some Folder" > c:\files.txt

(1) Is it not better to include the /a switch also? i..e,
dir /s /a "E:\Some Folder" > c:\files.txt
(2) Will the command
tree /f "E:\Some Folder" > c:\files.txt
work equally well?
 
Back
Top