I use the script from this Thread accepted answer from Mofi. The script copy folders and store them in text file to exclude once copied folders on next run.
Sometimes I have folders called [incomplete]-different.names
and I do not want to copy this folders. I want that all folders with the string [incomplete]-
and the name behind are skipped or are not even written in the text file %CurrentList%
for further processing.
These are my previous attempts but so far I could not get up and running with the script from the top. Help would be nice, and thanks in advance.
Try 1:
for /f "delims=" [incomplete]-%%D in ("%CurrentList%") do (
set str=%%D
set str=!str: =!
set str=!str: %%D =!
echo !str!
Try 2:
findstr /v /b /c:"[incomplete]-"%%D" "%CurrentList%" del "%%D"