PDA

View Full Version : Prog for listing folders


Dogdaysdude
10-05-2004, 03:59 PM
Hi, all. Can anyone recommend a nice program for generating a printout or file of folder contents of removable media or hard drives, etc?
Thanks.

david eaton
10-05-2004, 05:08 PM
A simple batch file is probably the easiest thing to use.

Example "dir a:\>prn."

just change the a:\ to whatever drive and folder.

To include the subolders in that listing, add the parameter /s.

Eample "dir a:\ /s>prn"

Paul Komski
10-05-2004, 05:43 PM
TurboNavigator should help out
http://www.freeware-download.com/downloaddetails/709.html

Select the files and folders in one of the panes and then from the edit menu choose to copy the files (or the file paths if that's what you want) to clipboard - then paste the results where you want them.

Along David's lines you can also use a command prompt window and then use the dir command. Then copy the block of text that you want, including file sizes and dates if wanted. Then, as before, paste into notepad or wherever you want the text used.

Copying from a command prompt windows is done differently in the various OSes but in WinXP you would RClick and choose Mark - highlight the relevant area - then press Enter to copy the marked text to the clipboard.

Complementary to the above is to install the "Open Command Prompt Here" PowerToy http://www.microsoft.com/windowsxp/downloads/powertoys/xppowertoys.mspx which allows you to find the folder you want in MyComputer and then from a right click open the command prompt at that place.

I think its called DOS Prompt Here for the Win98/ME PowerToys.

Pomodoro
10-06-2004, 06:51 PM
Can't remember where I got this from, so I can't give credit where it's due.
Create a DOS .bat file with the following content:
@echo off
dir %1 /-p /o:gn > "%temp%\Listing"
rem dir %1 /-p /o:gn > "test.txt"
start /w notepad /p "%temp%\Listing"
del "%temp%\Listing"
exit

The following may vary slightly depending on which Windows you use.
Go into an explorer window and open the Folder Options / FileTypes
Select File Folder and Edit
Add new action eg Print Directory Listing
Click "Edit"
In the application to perform action, enter the .bat file path and name
OK everything

To use, select the directory you want to print, right click and choose Print Directory Listing