patd1
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\folde rname\*.zi p.
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\folder name\*.zip
How can I accomplish that?
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\folder
How can I accomplish that?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.