Posted: Wed Nov 22, 2006 10:32 am Post subject: Re: Print a list of files in a folder [Login to view extended thread Info.]
Since the days of DOS prompts and command lines, the ability to save directory information to a text file has always been there. Once saved to a text file, it can be easily read with "Wordpad" or your favorite word processor and/or printed out on your printer for a permanent record.
There's NO need to install extra software to perform that simple task.
Open a command prompt. Change directory with the cd command to get into the directory you want to read. Then type this command.
dir /a >c:\dirlist.txt
The "dir" command will read the current directory.
the "/a" tells "dir" to read all files in the folder, even hidden or system files.
Then the ">" (greater-than sign) tells "dir" to redirect its output to the filename following.
"dirlist.txt" is the name of the file that will receive the directory listing.
I use this simple technique often to get a listing of files in some folder or another.
[If using the CD command to change to a specific directory is not to your liking, you can just insert the path to the subject folder in the command line, like this:
dir /a "C:\Program Files\xorb\" > C:\dirlist.txt
This will list all the files in the \xorb\ folder.]
All times are: Eastern Time (US & Canada) (change)
Page 1 of 1
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum