file containing directory and file names

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
schulzkeil
Junior Member
Junior Member
Posts: 6
Joined: 2005-04-30, 14:30 UTC

file containing directory and file names

Post by *schulzkeil »

How can I create a file containg all directrory, subdirectory and file names of a partition? With the print command I can print a list of directrory and file names; but I would like to have such a file on my hard disk, and "printing" it to a file through a generic text printer results in strangely confused formatting. At the moment I print to Acrobe Acrobat and then from Acrobat to a text file. But this takes hours and is very cumbersome. There must be an easier way.
User avatar
StickyNomad
Power Member
Power Member
Posts: 1933
Joined: 2004-01-10, 00:15 UTC
Location: Germany

Post by *StickyNomad »

Hm, what about

Code: Select all

dir /s > file.txt
?

To output names only, add parameter '/b'. Maybe this could help. Although I'm wondering a bit why printing the file to generic Printer driver destroys the format. Does the driver work in other applications?
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

Have a look here, pls.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

What about using PrintFolder
Post Reply