Batch File move files base on part of their name

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
pernekd
Posts: 1
Joined: 21 Dec 2021 14:46

Batch File move files base on part of their name

#1 Post by pernekd » 21 Dec 2021 15:04

Is it possible for a bat file to move a file (.xlsx) to another folder (another location) whit only part of that name?

For example:
Location: O:\Artikel-Nummern-offene Aufträge 2021\_BEI_TEST

file name to move (.xlsx)
#Import#0181004401#0000015227_BEI_1300090026_20211206210105
#Import#0181004482#0000015402_BEI_1300090389_20211208210239
...
--------------

The files where I want to move the files are named:
Location: O:\Artikel-Nummern-offene Aufträge 2021
353556_Lidl_0181004401
374684_Lidl_0181004482

tnx!

Squashman
Expert
Posts: 4486
Joined: 23 Dec 2011 13:59

Re: Batch File move files base on part of their name

#2 Post by Squashman » 21 Dec 2021 21:05


Post Reply