Code: Select all
Procedure.i DirExist(path.s)
If FileSize(path)=-2
ProcedureReturn #True
Else
ProcedureReturn
EndIf
EndProcedure
The shared folder is something like "\\computer\files\here\" and Z: is really that. And I want to know if "Z:\\big\" does exist or not, before trying to copy files there.
The problem is that if my DirExist() tries to check for "Z:" existence, e=DirExist("Z:\\"+"big\") if the shared folder computer is not online, it takes ages to check for it, even crashing the program.
Notice that if the other computer is online, it is fast as expected, even if the folder exist or not.