Link to home
Start Free TrialLog in
Avatar of patd1
patd1Flag for United States of America

asked on

need batch command to find file not having a particular string in the filename

I have multiple zip files in a source folder (\\servername_Source\foldername\*.zip.
I want to move files that do not have string "_month_" in the file name.

Example: if the source folder has three files: file_a_123.zip, file_d_123.zip and file_month_123.zip, I want only move file not having "_month_" in the file name. As a result, file_a_123.zip and file_d_123.zip should be moved to target folder: \\servername_target\foldername\*.zip

How can I accomplish that?
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial