sasieightynine
sasieightynine

Reputation: 444

Moving files with specific file name & extension

I'd like to create a batch file under windows to move files with specific file names. I'd like to move all the files with txt extension and filename starting with "HH", and moving them only from root, sub directories excluded. And if a file with the same name is already exist in the destination directory I'd like to auto rename files instead of overwriting. Is it possible to do?

Upvotes: 1

Views: 3409

Answers (1)

clusterdude
clusterdude

Reputation: 621

You can simply use:

move c:\HH*.txt destination_directory

Upvotes: 2

Related Questions