Skip to main content
gamedev.net
🔒 Locked

Batch file question

Started by Drats Apr 25, 2009 at 3:42 AM 1 replies 800+ views
Original Post
Drats
Drats
Hi I want to write a batch file that will search a folder and copy the names of all the files in that folder to a textfile. I tried the "list_of_files" command but that gives me extra information like size of file , time modified etc which I do not want. The batch file i am looking for will simply output the names of all files to a text file without any other info. Could someone help me with this? thanks
Falken42
Falken42
dir /b /a-d [your folder name] > [your output file.txt]

If you want subdirectories, add /s.

This link might help with some of the other flags you can pass to dir.
Drats
Drats
Thanks that did the trick.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.