PDA

View Full Version : [REQ] Really Simple Proggie



ghost716
02-17-2008, 04:04 PM
Ok so I'm looking for a program that I can direct to a folder with a large number of files inside and it will output the names of all hte files to a text file or just to text that I can copy and paste. It seems to simple NOT to exist, but because its so simple I can't seem to search for it without getting 10,000 results on sourceforge :/

any help?

jmagar
02-17-2008, 05:19 PM
cmd.exe
dir c:\whatever
ls

ghost716
02-17-2008, 05:50 PM
and itll export a list?

k i figured this out
i need to know how to export to a text file now
anyone ? :]

4play
02-17-2008, 09:36 PM
cmd.exe
dir c:\whatever
dir > test.txt

you now have all the filenames in that directory in the test.txt file.

ghost716
02-17-2008, 09:42 PM
yep i already figured it out
thanks guys :]

mbucari1
02-18-2008, 01:08 AM
actually, "dir /b > list.txt" would be better. The /b switch outputs just the file names and not any attributes.

ghost716
02-18-2008, 03:02 AM
this is what i did, tell me if you have a better idea

f:\> (this is the root that im in) dir /s movies\ >> f:\results.txt

i think thats what it was atleast
tell me if it looks wrong lol
but it worked
it had attributes tho, which i wasnt exactly happy about lol

mbucari1
02-20-2008, 10:20 AM
this is what i did, tell me if you have a better idea

f:\> (this is the root that im in) dir /s movies\ >> f:\results.txt

i think thats what it was atleast
tell me if it looks wrong lol
but it worked
it had attributes tho, which i wasnt exactly happy about lolthen read the post above yours, the /b switch removes the attributes.

thevito1
02-21-2008, 04:58 PM
nice work thanks

ghost716
02-21-2008, 07:31 PM
yep thanks guys
got it working now, thanks for all your help