Saved Bookmarks
| 1. |
Solve : Batch file to output file names? |
|
Answer» Hi I want to write a batch FILE that will search a folder for all files and copy the file names to a text file. 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 use the /b switch with the dir command to get just the names Code: [SELECT]dir /b > files.txt Note that files.txt will be included in the list if it is in the same folder. use the /a-d switch to exclude directory names type dir /? at the prompt to see all options and switches. The FILENAME files.txt is just an example. You do not have to use it. Thanks mate, that did the trick |
|