Hi,
How to write batch file commands to move files (if exists) from root directory to the final <year>.<month> directory?
The files in root directory will be of format "ABC_121002_00023_21_8.dat" Please note here that in 121002, 12 is Year and 10 is month and 02 is date ...
Source : C:\ABCD\ABC_121002_00023_21_8.dat
Destination : C:\ABCD\201210\ABC_121002_00023_21_8.dat <-- 201210 ... 2012 is year and 10 is month from Filename. Assume this folder is already created ... we just need to move files to corresponding folder from filename.
Please let me know.
Thanks.