Help list 1228 pdf's !

Soldato
Joined
30 Aug 2003
Posts
14,225
Location
Straya
I currently have 1228 pdf's on my local drive, that I need to list out on a spreadsheet, including the file extentions i.e.: example.pdf , example2.pdf etc.

I know there is a Dos command to do it, that will list it out in a .txt file, but I keep forgetting how to do it.

Do you know how to do it, or know of a simpler way to do it with windows, or in fact an application (i suck with dos)

cheers
 
Yeap, they are in the same folder.
dir "b" <-- that b being my directory i have it in (I'm complete dos noob ... try keep it in mind ;) )
 
oh, say they're in C:\docs\


start, run, cmd


c: press enter
cd c:\docs press enter
dir /b > files.txt press enter

now go to explorer and c:\docs, the files.txt file will be in there..

if you type "dir /?" it tells you the options, the /b is for removing extra file information -strips the info from the text file


-edit, or just save this file and place it in any directory you want to list the files for and double click it once :)

http://bleddyn.co.uk/temp/supercow.bat

-folders will be named too, but without extention
 
bledd. said:
oh, say they're in C:\docs\


start, run, cmd


c: press enter
cd c:\docs press enter
dir /b > files.txt press enter

now go to explorer and c:\docs, the files.txt file will be in there..

if you type "dir /?" it tells you the options, the /b is for removing extra file information -strips the info from the text file


Cheers mate, that worked a treat :)
 
Back
Top Bottom