|I am using the following batch to quickly create a list of all of my XML files contained in a folder:|
dir /b/o "C:\path\location"|find ".xml">ListOfFileNames.txt
The problem with this is I have numerous folder that I want seperate 'ListOfFileNames.txt' files created for, and wanted to know if there was a way to just be able to move the batch file from one file to the next(or just copy/paste into each folder) so that whenever it's run, I do not have to change the path for every file. I would like a batch that just pulls a list of files from whatever location the batch is located.
Any help would be appreciated, thanks!