I have a for loop in my batch file that loops through folders. I want to skip particular folders. I can do this with an IF statement, but would prefer a GOTO like I'm showing below.
for /d %%F in (*) do (
if /i "%%F"=="Archive" goto nextFolder
REM do stuff here
:nextFolder
)
But the above is giving me errors:
) was unexpected at this time