|Ok, I have a folder which contains a lot of files, each starting with a unique, 2-digit number, followed by their name. My code contains:|
set /P FILENAME=What is the number?:
for %%F in (%FILENAME%\*.tga) do ECHO file 0 = %%F > textfile.tcs
However, this only works if the folders entire name is specified, not just the first two digits (which is what I'd prefer), I tried specifying an unknown with %FILENAME%*, but it didn't work (as you can see, I'm new to this).
Thanks in advance, Milun.