Batch file to rename file extention when another file exists which meets a certain condition.
Posted on 2013-01-22
I am looking for a batch file / VB script which will check for the following.
These files exist in a folder.
NAMBGE20130124001.psp1 22/01/2013 03:24 PM
NAMBGE20130124001.ps_temp 22/01/2013 03:54 PM
If NAMBGE20130124001.ps_temp exists and is 30 mins (or more) older than
then rename NAMBGE20130124001.psp* to NAMBGE20130124001.err
Any ideas would be appreciated.