My batch program had been working without any problems for a decade. I replaced a NFS(Network File System) with new one. After that, it has become to fail once or twice per month. (The program is working three times per day)
The following is an excerpt that causes the above problem. FolderExists() occasionally doesn't return true though a folder path really exists.
Function foo(path)
Set objFileSystem = CreateObject("Scripting.FileSystemObject")
If objFileSystem.FolderExists(path) Then
' do something
End If
Could anyone give me any advice?
Here is the OS information.
Windows Server 2003
Service Pack2