I have the following snippet of code:
The problem is that %fn can have chars that setdos /x..... would help process correctly, but I don't want to use setdos at all but want to iterate over all those badly named files. Is there a way to do this? At the very least I thought the IFF isfile "%fn" then .... ELSE ... ENDIFF would help trap those files....
Code:
:DoFldr
rem for each file in this fldr
rem compare extension to each s* variable abouve
rem if match is fouind = move file to folder named above - depending on type of file....
rem else move to C:\Z_NewAll\z_NewDown\
echo ``
echo Processing %_CWD
for %fn in (*) (
echos .
IFF isfile "%fn" then
set pTGT=%sUnkn%
set cExt=%@upper[%@ext["%fn"]]
The problem is that %fn can have chars that setdos /x..... would help process correctly, but I don't want to use setdos at all but want to iterate over all those badly named files. Is there a way to do this? At the very least I thought the IFF isfile "%fn" then .... ELSE ... ENDIFF would help trap those files....