File and Folder Directory List - Print and Save

Brink

Staff member
mvp
ByLine
How to Save and Print a Directory List for a File and Folder in Vista
Synopsis
This will show you how to easily create a file and folder directory list that you can print and save to disk as a file. You can include the name of every file on a drive, along with the file's size, date and time of last modification, and attributes (Read-Only, Hidden, System and Archive)
How to Save and Print a Directory List for a File and Folder in Vista

information   Information
This will show you how to easily create a file and folder directory list that you can print and save to disk as a file. You can include the name of every file on a drive, along with the file's size, date and time of last modification, and attributes (Read-Only, Hidden, System and Archive). The list of files can be sorted by name, size, date created, date last modified, or date of last access.
Note   Note
This way you do not want to mess with the DIR command codes.
Tip   Tip
I would recommend that you try the Save to Disk option first to adjust your settings and see how it looks in the text file. This way you will see how it will print before wasting any ink and paper in the Print option.




METHOD ONE
Add "Print File Directory" to the Context Menu







METHOD TWO
Using "Karen's Directory Printer Download" Program

2. Download and install the free Karen's Directory Printer program.​
NOTE: Program written by: Karen Kenworthy. The program shortcut will be placed in the Start Menu under All Programs\Karen's Power Tools\K Directory Printer.​



Option One
Print File and Folder Directory List in Vista
1. Run the Karen's Directory Printer program.​
2. Click on the Print tab. (See screenshot below step 4)​
3. Select a Folder and Options you want to print.​
NOTE: When you hover the pointer over a option it will give you pop-up description of it. If you need more information or help, then click on the Help button.​
4. Click on the Print button when done.​
Print.jpg

5. Set your printer settings and click on Print. (See screenshot below)​
Printer_Settings.jpg





Option Two
Save File and Folder Directory List to a File in Vista
1. Run the Karen's Directory Printer program.​
2. Click on the Save to Disk tab. (See screenshot below step 4)​
3. Select a Folder and Options you want to save to file. (EX: TXT file)​
NOTE: When you hover the pointer over a option it will give you pop-up description of it. If you need more information or help, then click on the Help button.​
4. Click on the Save to Disk button when done.​
Save_to_Disk.jpg

5. Choose a save location and type a name for the file, then click on Save. (See screenshot below)​
NOTE: Click on Browse Folders to navigate to another save location.​
Save_Location_Name.jpg


That's it,
Shawn



 

Attachments

Last edited by a moderator:

My Computers

System One System Two

  • Operating System
    Windows 10 Pro 64-bit
    Manufacturer/Model
    Custom
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    3 x 27" Asus VE278Q
    Screen Resolution
    1920x1080
    Hard Drives
    1TB Samsung 970 EVO Plus M.2,
    250GB Samsung 960 EVO M.2,
    6TB WD Black WD6001FZWX
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Mouse
    Logitech MX Master
    Keyboard
    Logitech wireless K800
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    Linksys EA9500 router,
    Arris SB8200 cable modem,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Lumia 1520 phone
  • Operating System
    Windows 10 Pro
    Manufacturer/Model
    HP Envy Y0F94AV
    CPU
    i7-7500U @ 2.70 GHz
    Memory
    16 GB DDR4-2133
    Graphics card(s)
    NVIDIA GeForce 940MX
    Sound Card
    Conexant ISST Audio
    Monitor(s) Displays
    17.3" UHD IPS touch
    Screen Resolution
    3480 x 2160
    Hard Drives
    512 GB M.2 SSD

greg486

Member
For those of you that would like to go the built-in route for vista or xp you can print the directory listing straight to any format you wish by doing the following:

In Vista:

Click Start Menu (Orb) >type "cmd" in the Search box at the bottom, you will see "Command Prompt" listed, right-click on it and choose "Run As Administrator"> Click "Allow or Continue" with the Security prompt > Once opened, navigate to the directory via the cd (change directory) command> once there type "dir > C:\Wherever you want the file.txt" > This will print to the file the entire directory and full path and size of every file and date attributes.

In XP:

Click Start Menu > click Run> type "cmd", click OK or you can go to Start> All Programs> Accessories>Command Prompt as well> Command Prompt will open, again navigate to the directory you desire by using the cd command (i.e.
C:\Windows\System32>cd C:\Documents and Settings\User Profile\Desktop)> once there again as stated above type "dir" > C:\Wherever you want the file.txt or .doc or .rtf whichever suits you>type "exit" or click the "X" in the upper right-hand corner>Check the directory you typed for the file and you should see it there with the list of files and folders in that directory specified.
As far as printing you can print the file just like any other document on your computer.

Questions feel free..


Hope this helps for anybody not wanting to install another application on your computer!

greg486
 

My Computer

Ninja

Member
This would look much nicer:

Code:
dir /b > filename.txt

And one more tip: right-click on any folder holding the Shift key you'll get option "Open Command Prompt here". Then you won't have to navigate to a folder through command line.
 

My Computer

greg486

Member
This would look much nicer:

Code:
dir /b > filename.txt
And one more tip: right-click on any folder holding the Shift key you'll get option "Open Command Prompt here". Then you won't have to navigate to a folder through command line.
Agreed! Thanks for the cleanup I forgot about the Shift shortcut, it's been a while since I've done a lot with command prompt or DOS. Guess I learned a little, too! ;) Also, the /b command only removes the summary and heading, which in some cases is good but if you would like to for detailed purposes, its nice to do without. Again, thanks for the tip!
 

My Computer

Top