Print a list of Folders, Subfolders & Filenames on a public drive?

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

Guest

Does anyone know of a way to print out a list of all Folders, Subfolders, &
Filenames in a specific drive into a Word document? Thanks!!!
 
Several ways to do this. Here are a couple.

Add a Print Directory Feature for Folders in Windows XP
http://www.mvps.org/sramesh2k/PrintDirectory.htm

HOW TO: Add a "Print Directory" Feature for Folders in Windows XP
http://support.microsoft.com/kb/321379

Karen's Directory Printer
http://www.karenware.com/powertools/ptdirprn.asp

You can use the dir command and send the output to a text file.

Open a command prompt...
Start | Run | Type: cmd | Click OK or hit your Enter key.

Change Directory to the folder that you want.

cd C:\Documents and Settings\Your Name Here\blahblah

Hit your Enter key.

Type or paste the following command and hit Enter.

dir /b /o:ng > "%userprofile%\Desktop\Directory.txt"

Directory.txt will be created on your Desktop.

Without Changing Directory.

Open a command prompt and type or paste the following command and hit Enter
after changing the path in the command to the folder that you want.

dir "C:\Documents and Settings\Your Name Here\blahblah" /b
/n>"%userprofile%\Desktop\dirlist.txt"

The line wrapped. There should be one space between /b and /n.

Directory.txt will be created on your Desktop.

/b Uses bare format, no date, time or size listed.

/o:ng O list by files in sorted order. N alphabetic by name. G groups
directories first.

Type: cd /? for Help on the cd command.

Type: dir /? for Help on the dir command.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
Back
Top