Script to rename certain files in specified paths
Posted on 2007-03-18
I'd like help with the following
I need will provide a .txt file to be read of numerous paths,
The script needs to look for any files in that path that match the following
"Company Statement ****.pdf"
The **** will be a date, as in 2004 or 2005 etc. The tricky part (for me anyway) is any files it finds in the path that match "Company Statement ****.pdf need to be incremented by one, so 2004 becomes 2005, 2005 becomes 2006 etc. There may be numerous .pdfs in the path that need changing.
Can this be done? It seems tricky to me but hoping one of you programming experts can save us from some serious manual mouse/keyboard labour :)
Thanks in advance