I am using a windows bactchfile to grab all folders that don't start with "abc". Therefore, ignoring folders names abcd, and abc123, etc. It seems the IF statement does not process wild cards. How can I go about doing this.
for /D %%A in (*) do (
if not %%A == abc* (Do commands)
)
I found some help saying to use something like the following but am unable to get the correct syntax.
%variable:~offset,length%
I tried this syntax but its not correct:
if not %%A:~0:3 == abc (Do commands)