Using CMD to compile a list.

Soldato
Joined
30 Jul 2004
Posts
10,572
Location
East Sussex, UK
Howzit guys,

So I have a large amount of files on one of my drives. I wanted to put all the file names into a word document.

Now I have used command prompt to make a list of the file using the dir command.

However it doesn't grab all the files. It seems to get 'cut off' half way through.

Is there an easier way of getting the list of all the files on there in one go?

Thanks for any help. :cool:
 
You can dump it all into a text file if that helps, or do you need it in the command window?

Code:
dir c:\ > c:\output.txt

The above will dump the results of the dir into a file named output.txt in c:\

edit - I would then just copy/paste that into Word
 
I don't need it to be in the command window. As long as it copies all the file names in the folder.

Will give it a try tonight -

Many thanks. :cool:
 
try this

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

the /b will just give the filenames (nice and neat)
the /s will list ALL files including those in subdirectories

do
dir /?
into a cmd window to see the help files for the dir command and all its command line
options.
 
try this

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

the /b will just give the filenames (nice and neat)
the /s will list ALL files including those in subdirectories

do
dir /?
into a cmd window to see the help files for the dir command and all its command line
options.

+1

I used to use the /b switch to create a half-life maplist back in the day :p
 
Back
Top Bottom