I am currently using a macro to generate this folder but I have to enter the week number. I would like to bypass this step and automatically generate the new folder.
However, I have not yet been able to use GetFileList properly (assuming this is the right way to go?). The manual says Let>GFL_TYPE=1 should give me directories instead of files, but I haven't been able to make that work. Below is the code I have.
If there is another way I should be doing this, I'm all ears, but my basic plan was to get a list of file names, find the one with the highest week number, then create a new folder that is one higher.
I guess a bonus would be to start a new year if it hits 52 but that's not a big deal.
Code: Select all
Let>GFL_TYPE=1
GetFileList>\\rnodata01\scrub$\Production_Issues_Clarify\**,directories
Separate>directories,;,file_names
MessageModal>%directories%