|I found a way to make a list of files in a directory from the following site:|
However, what I would like to do is put the resulting .txt file into a particular directory and use the name of the target directory as the .txt file name. This is what I have so far:
dir %1 /a /b /-p /o:gen >"C:\MyDowners\_Files.txt"
What I need to know is how to add the %1 before the '_Files.txt'??
I've tried using & in different methods:
"C:\MyDowners\" & %1 & "_Files.txt"
"C:\MyDowners\ & %1 & _Files.txt"
As well as:
"C:\MyDowners\" %1 "_Files.txt"
Nothing I'm doing is working. Any help would be appreciated!
Peace to you and yours,
Matthew "Dra'Gon" Stohler