How to copy files with the same name?

Hi guys,

I'm using batch files and I've got myself tight on something here, i have a folder [B]A[/B] which has three files:

[CODE]contract.txt
contract.ctl
contracting.txt
contracted.ctl[/CODE]

I want to copy to a folder [B]B[/B] only files with the same name, which would be:

[CODE]contract.txt
contract.ctl[/CODE]

How can i do that? Is there any codition i can put on my batch file?

Regards,
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories