Script to find a filename
Posted on 2010-11-16
I have a file with a .ERR extension. I need to monitor that .ERR extension anytime it becomes over 0KB in length. So I need a script that I can setup as a scheduled task to check that file size. The filename is going to be changed daily, but it will always have and always be the only file with a .ERR extension. SO the script needs to either find the filename then do a check on the size, or the script can parse through all the files in a folder for anything with a .ERR extension and then check the size. I do not care if it is a batch or a vbs script. Any ideas?