i move files using file names where date in different format included in file name to destination folder named with date i want to summarize my batch file which I made. and also
it will create current date folder and so on. if some day folder at destination not found it will create by reading source file name where date included in file name. Every day I make change in batch file to change the date. kindly help me to do it automatically only reading file name
some files name samples are as given below:
record_xxxxx_20220301.mp4
record-xxxxx-220301.wav
record-xxxx_22-03-01.mp4
record-xxxx_01-03-22.wav
record-xxxx_01-03-2022.mp4
MKDIR D:\SMC-RECORDING\REC202201\20220101
for /R D:\SMC-RECORD %%f in (*2022-01-01*,*01012022*,*01-01-22*,*01-01-2022*,*01_01_2022*,*01_01_22*,*2022_01_01*,*22_01_01*,*20220101*,*220101*,*2022_01_01*) do MOVE "%%f" D:\SMC-RECORDING\REC202201\20220101
:eof