Copy files that begin with specific letters and numbers and then copy them out once found

100questions
100questions used Ask the Experts™
on
I would like to search a folder, for example C:\Attachement\Inbox..  for any files that start with the  following  INBOUND123..... .in  
then I could like to copy if found to another folder called C:\Attachments\Transferred..

What batch command can I use to do this?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2016

Commented:
robocopy C:\Attachement\Inbox\INBOUND123* C:\Attachments\Transferred

Open in new window

copy C:\Attachement\Inbox\INBOUND123* C:\Attachments\Transferred

Open in new window

xcopy C:\Attachement\Inbox\INBOUND123* C:\Attachments\Transferred

Open in new window

IT / Software Engineering Consultant
Top Expert 2016
Commented:
Hard to tell from the question text, but if you need the extension IN, then just add it, like:

copy "C:\Attachement\Inbox\INBOUND123*.in" "C:\Attachments\Transferred"

Open in new window


»bp

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial