Regular express to check if the File path passed is a valid one
I am working on a function that would give do a file save on the path as specifeid by the user in datasheet. I need to know if the path provided is a valid path or not.
I mean, if the path is like "c:/Tes/.qtp//" something of this kind. Can you guys give me some ideas on it. I am blank actually. I am not sure if we can use RE for this.
You should not user patterns to do that. A valid file path can still invalid if the file is not present at the locationSet fso = createObject("Scripting.FileSystemObject")filePath = "C:\Myfile.xls"msgbox fso.FileExists(filePath)