Page 1 of 1

Batch File to search file name and copy and rename if "XYZ"

Posted: 21 Jul 2015 02:29
by sterlingshiding
I'm looking for some help in creating a batch file. Here's what I'm needing. Any help is greatly appreciated!

Load the batch from the folder that needs to be searched
if the file name has DBB any where in it EXAMPLE "test place four dbb nine one.txt" then copy and name it "TEST.DBB"
and then I will edit it to do the exact same thing for DTB.

Again, thank you guys in advance.