How Can I Determine if a File Exists and, if It Does, Exit the Script?
Hey, Scripting Guy! How can I check to see if a particular file exists and, if it does, exit the script?-- TO Hey, TO. There are at least two ways to check for the existence of a file (that’s the real key here; exiting the script is easy). One of these approaches uses the FileSystemObject and the other uses WMI, and we’re going to show you both ...