Output directory list to text file in Win XP

Trooper4985

Limp Gawd
Joined
Nov 30, 2003
Messages
139
Is there anyway to output a text list of the files in a directory or entire drive in WinXP?
 
From a command prompt:
dir/s > text.txt

the /s is subdirectories, since you mentioned an entire drive. The > to choose output is a general function of DOS from back in the day.
 
Thanks... I have forgotten much of what I knew of DOS from 20 years ago... I guess I have become one of the mindless Windoze herd that I used to joke about.
 
Here are two free programs that allow you to do this including some other options :}

LS - File List Generator
DirLister



you can also make a batch file using this:
Code:
   @echo ==================================================================
   @echo ==================================================================
   @echo Save this file as getDirList.bat in your SendTo directory.
   @echo SendTo is under Documents and Settings in each user's directory.
   @echo Right-click on any directory in Windows Explorer and choose
   @echo Send To - getDirList.bat
   @echo ==================================================================
   @echo ==================================================================
   @echo Dumping directory listing to c:\dirListing.txt
   @REM the /A switch lists all hidden and system files as well.
   @REM the /S switch lists all subdirectories and their contents.
   @dir %1 /A /S > c:\dirListing.txt
   @echo Opening c:\dirListing.txt in Notepad (Close notepad to delete file)
   @notepad c:\dirListing.txt
   @echo Deleting c:\dirListing.txt
   @del c:\dirListing.txt
   @pause
 
Back
Top