file containing directory and file names
Moderators: white, Hacker, petermad, Stefan2
-
- Junior Member
- Posts: 6
- Joined: 2005-04-30, 14:30 UTC
file containing directory and file names
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.
- StickyNomad
- Power Member
- Posts: 1933
- Joined: 2004-01-10, 00:15 UTC
- Location: Germany
Hm, what about
?
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?
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?
What about using PrintFolder