|Did you do any debugging to see what was not working? A word of caution: do not run this or any other batch file on good data until you are sure it is working as intended. I've added a tweak that should fix most problems, but you should set up a couple testing directories for debugging. Use a command like the following (with echo on) to log what happens:|
MyBatch > batch.log
Then examine the log file to see if anything is unexpected. To narrow things down, you can add lines like the following to see if a variable is the value you expect.
echo destfile=!destfile! suffix=!suffix!
Here is the tweaked batch to try (note "@echo off" is REM'd out for debugging):
REM @echo off
cd /d F:\Pics
for %%i in (*.*) do
if exist C:\Pics\destfile
set /a suffix+=1
if "!suffix!"=="000" goto overflow
if exist C:\Pics\!destfile! goto checknext
move %%i C:\Pics\!destfile!