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

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
sterlingshiding
Posts: 1
Joined: 21 Jul 2015 02:22

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

#1 Post by sterlingshiding » 21 Jul 2015 02:29

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.

Post Reply