Re: Print a list of Folders, Subfolders & Filenames in a specific driv



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 news:2256E3EF-E0F6-4E06-BF9C-56F68B0A4B22@xxxxxxxxxxxxx,
PlayingToAudienceOfOne <PlayingToAudienceOfOne@xxxxxxxxxxxxxxxxxxxxxxxxx> hunted and pecked:
Does any genius out there know of a way to print a single list of all the
Folders, Subfolders & Filenames in a specific drive or directory?
Thanks!!

.



Relevant Pages

  • Re: Feedback wanted on programming introduction (Python in Windows)
    ... handle files or folders with paths greater than some 260 characters, is unable to handle filenames that differ only in case and are in the same directory, and is unable to e.g. delete a folder called "con" -- although such files & folders can very easily be created. ... You may consider, since you're unfamiliar with the API, that mostly it's no problem doing these things in the command interpreter, which has no special support. ... know about levels of environment variable specifications and file associations, which in turn requires knowledge of processes and the Windows registry database and various commands. ...
    (comp.lang.python)
  • Re: Cannot delete file with name ended with a dot.
    ... receive the message "File Not Found" (from command prompt I cannot see the ... The operating system is Windows 2008 server standard x64. ... A little background on undeletable files and folders: ... files to it but use characters in the name that FTP supports (ASCII ...
    (microsoft.public.windows.server.general)
  • Success
    ... secure Windows, IIS, IE, Outlook Express ... >different upload and download folders. ... >Third party FTP software, or OpenSSH, or VPN can be used ... >1) Use a "DOS" Command Prompt for the steps below. ...
    (microsoft.public.inetserver.iis.security)
  • Re: Idiot_self+trojans+administrative privs = Disaster
    ... What I do in cases like this is to get a good command line virus scanner, put it on a flash drive, and boot the machine from a WinPE CD. ... Once the machine is at the command prompt, I empty all the temp folders for all user profiles and in windows, as well as the temporary internet files/content.ie5 folders. ...
    (Security-Basics)
  • Re: Copying File Names into a List
    ... Command Prompt Copy & Paste ... mouse and use the Enter key to copy the highlighted text to the Windows ... Highlight text with the cursor and hit the Enter key to copy to the Windows ...
    (microsoft.public.windowsxp.newusers)

Quantcast