How to Print or Save a Directory Listing to a File
At the command prompt, type the following command and press Enter.
dir > print.txt
A file called print.txt is created in the directory.
When you open the file in Notepad, or in your favorite text editor or word processor, you will see the same directory listing you would see in the command window using the “dir” command alone.
Comments
Post a Comment