|n(o)brane wants to know:|
why doesn't this work?
for /d %%A in (friggit.txt) do (
which should yield the size of friggit.txt but instead generates:
The following usage of the path operator in batch-parameter
substitution is invalid: %~zA
friggit.txt exists in the cur.dir of the batchfile
(the echo of %%A confirms as friggit.txt)
the battlefield is littered with the twisted bodies of percents, exclms, echo's, sets, and FOR's. It works on %1, %2 etc, either setdelayed or not, but refuses to work from inside the FOR or reflected after the expiration of FOR loop. made sure to use only the FOR variable (%%A) and not a substitute.
I know I'm missing something really really simple... (my brain!)