Write a BATCH Script to Move Files based on name from one folder to another (Windows environment)
Budget: $10 – $30 AUD
C:/staging folder contains a large number of files and folders with the following name structure.
Folder: VTHUB_ABCD-EFG_H200011731011_2020-01
File: VTHUB_ABCD-EFG_H200011731011_2020-01-10T171226+1100.CSV
The folder name contains month in its name, files contain timestamp.
When the script runs, files which contain timestamp older than 15 days should be moved to C:/archive.
When the script runs, folders and all files under them which contain month older than 15 days should be moved to C:/archive (folders for last month will be moved on 15th of current month for example).
Folder: VTHUB_ABCD-EFG_H200011731011_2020-01
File: VTHUB_ABCD-EFG_H200011731011_2020-01-10T171226+1100.CSV
The folder name contains month in its name, files contain timestamp.
When the script runs, files which contain timestamp older than 15 days should be moved to C:/archive.
When the script runs, folders and all files under them which contain month older than 15 days should be moved to C:/archive (folders for last month will be moved on 15th of current month for example).