I have a really annoying problem on hand witha really short script:
Code: Select all
set me=%~nx0
echo a
for /f "tokens=*" %%G in ('dir "%~dp0" /b') do (
echo b
if not %G == "%me%" (
echo c
if %~zG == 32640 (echo %G %~zG b OK) else echo %G %~zG b MISMATCH
) )
pause
I have no idea to how to correct this, since I dont know the cause of the problem
I would appreciate any help
Thanks in advance
Szecska
Edit:Thanks for the replies!
Yep Steffen you were right %G is not defined, but in the original script it was written correctly,so I corrected here too.
Its the variable of the for loop. And this is the whole script and not just a chunk.