In a batch I have a
for /d /r %%a in (*) do
I want to do an action if %%a contains " - " (ie white space + hyphen + white space) and another action if it doesn't contain this string.
I cannot make it work! Do you have any idea? Thanks.
[PS : My question is similar to this one : Batch file: Find if substring is in string (not in a file) but I'm unable to adapt it to make it work!]