I need to schedule a script to run each day that checks a specific UNC location for a file, based on the current date, and then renames the file. The file to check would be for the next day, so as an example, today is 200430 (YYMMDD) and so the script would need to look for file (tomorrow's date) 200501.log_PROCESSED. If the file is found then it needs to rename to 200501.log. I'd also like to manually run a version of this script that also is able to check more than one day into the future and rename. So on execution it can ask how many days to check. If I enter 3 then it will check for and rename 200501.log_PROCESSED, 200502.log_PROCESSED and 200503.log_PROCESSED.
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Expert of the Year award recognizes an expert who helped improve Experts Exchange in the past year through high levels of contributions and participation on site. This award is given to the expert who has achieved the highest levels of participation, while maintaining quality contributions and professionalism.
The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.