I'm new to scripting and have been trying to solve much of what I want to achieve via the web.
Mostly this is successful, but sometimes it's difficult to know what to type in the search.
I have one such issue here, I'm hoping can be solved.
Code: Select all
(for %i in (*.txt) do @echo file '%i') > fileList.txt
searched for are .txt files it adds the newly created filelist.txt name to the list of files.
It's generally on the end, so is easily removed, but there may be times when this is part of
a more detailed script and it could become an issue.
I'm trying to learn, so would appreciate how to resolve this, or where to find information to figure this out.
Many thanks
sark