How to create a text file list?

  • Thread starter Thread starter medic
  • Start date Start date
M

medic

Hello, How to create a text file list of the contents of a
cd or a local drive in Windows XP Pro?
 
Hi this is what I use and works for me.
For the local drive I use this little bat:-

In Notepad create this string:-

DIR/ON/S>"%userprofile%\MY DOCUMENTS\LISTING.TXT"

Save the file as printdir.bat

Now copy the file to where you want to make a listing of files (including
subfolders) and then double click on it.

This will send a listing.txt file to your "my documents folder" which you
can edit and print.



For a listing of data CDs

Create this littel file in Notepad and save it as say printcdir.bat
Once created, just double click on the little bat file.

E:
DIR/ON/S>"%userprofile%\MY DOCUMENTS\CDLIST.TXT"


Note: E: represents the CD Drive

Hope this assists you, like I say it works for me.



How to add a Print Directory to Windows XP:-
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q321379
 
medic said:
Hello, How to create a text file list of the contents of a
cd or a local drive in Windows XP Pro?

I saw some suggestions here - allowing you to PRINT a directory.. But you
seem to want a text file.

Open a command prompt, cd into the root of the directory you want to get a
listing of and type:

dir > filename.txt

You have a lot of options with dir - just type:

dir /?

at a command prompt and you will see you can do things like:

dir /b /s > c:\filename.txt

Which would get just the file and directory names without all the sizes, etc
in the current and all sub directories and put them in c:\filename.txt.

Good Luck!
 
Hello all, The trick DIR/ON/S>"%userprofile%\MY
DOCUMENTS\LISTING.TXT" worked well to text file list the
folders/files of the local disk.

The trick E:
DIR/ON/S>"%userprofile%\MY DOCUMENTS\CDLIST.TXT" worked
too but the text file is empty :(

The trick dir /b /s > c:\filename.txt worked well to text
file list the folders/file of the CD

Thank you very much to the 3 of you :-)
 
this is one of the many very basic things windows xp
(which microsoft released to punish the US for the
justice department lawsuit) cannot do.

a cheap program that can is "file and mp3 renamer"
available at http://lcen.com/. use the file list and file
edit functions. the main purpose of the program is to
rename large bunches of files.
 
LIndsay Daniels said:
this is one of the many very basic things windows xp
(which microsoft released to punish the US for the
justice department lawsuit) cannot do.

That is incorrect. ANY version of Windows can do that very easily.
All it takes is a very basic understanding of computers by the operator,
that they should have before being allowed to use one in the first place.
Also, a 5 second Google search would give literally hundreds of
answers to this question.
 
Back
Top