VBScript assignment
Budget: €8 – €30 EUR
Write a script that would sort a folder of images by year, month and date.
The script must recursively (i.e. include all subfolders) process all files in a user-specified folder, for example, D:\Pictures, and elevate each JPEG or JPG file into a folder of the form:
D:\Sorted\Year\Year-Month-Day
i.e., for example,
D:\Sorted\2020\2020-09-03\
At the end of the work, the script must issue a report on its work - how many and what kind of files and what subfolders it moved to.
The output of the program should look something like this:
D:\>cscript sort.vbs d:\Pictures d:\Sorted
187 pictures were sorted into 32 folders.
--------
1 fillet
IMG_0804.jpg
was moved to folder
D:\Sorted\2019\2019-02-15
--------
3 files
IMG_0805.jpg, IMG_0806.jpg, IMG_0807.jpg
were moved to folder
D:\Sorted\2019\2019-02-18
etc.
The script must recursively (i.e. include all subfolders) process all files in a user-specified folder, for example, D:\Pictures, and elevate each JPEG or JPG file into a folder of the form:
D:\Sorted\Year\Year-Month-Day
i.e., for example,
D:\Sorted\2020\2020-09-03\
At the end of the work, the script must issue a report on its work - how many and what kind of files and what subfolders it moved to.
The output of the program should look something like this:
D:\>cscript sort.vbs d:\Pictures d:\Sorted
187 pictures were sorted into 32 folders.
--------
1 fillet
IMG_0804.jpg
was moved to folder
D:\Sorted\2019\2019-02-15
--------
3 files
IMG_0805.jpg, IMG_0806.jpg, IMG_0807.jpg
were moved to folder
D:\Sorted\2019\2019-02-18
etc.