Wednesday, January 23, 2013

Printing a Folder List

2 comments


                       If you want to print a list of all files in a folder, and also list the files in the sub-folders which belong to the folder, add the /S switch to the command line in the MS DOS prompt:

dir c:\abcfiles\*.* /s > c:\abcfiles.txt


which not only lists the files and sub-folders in \abcfiles, but also continues to list the files in all the sub-folders. You can then read it using NotePad or WorPad if the file size getting bigger.

Bonus tip:
If you have Microsoft Outlook installed on your system, then you can get a better list. From the Outlook Bar, click on My Computer. If there is no shortcut to My Computer, you can create it by right click an empty Space in the Outlook Bar, choose Outlook Bar Shortcut, Look in – File system, and click OK. Now expand the folder and subfolder, which you want to print. Click on File – Print menu, adjust your page, and then print the result.

----------------------------------------------------------------------------------------------------

Here's how to print several directories with lots of files and also print full details of the file, date size etc.  Open MS-DOS Command Prompt dialog box. Change to the C:\ root directory by typing in CD\ and then hit Enter. From the C:\ prompt type in DIR /S > DIRLIST.TXT and then hit Enter. That will give you a text document called DIRLIST.TXT which will contain all directories and all the files under each directory, including file sizes and dates. To print or edit the document, open it with Edit application (simply type EDIT DIRLIST.TXT and press Enter).


2 comments:

binaryman said...

I use Directory Report
http://www.file-utilities.com
It shows much more file attributes than the DOS dir command

Mahi Seo said...

Folder printing Vancouver - From presentation and pocket folders to evelopes and logo designs, Trendz Print Media a Vancouver printing company does it all. Quality folder printing services in Vancouver.
From presentation and pocket folders to evelopes and logo designs, Trendz Print Media a Vancouver printing company does it all. Quality folder printing services in Vancouver.

Post a Comment