I am trying to check that a network folder exists (i.e. \\computername\folder\subfolder). I am currently using the following code:
VB Code:
If (Dir$(sFilePath & "\nul") <> "") = True Then ' Folder Exists else 'Folder not found end if
This seems to work for mapped drives etc. However it doesn't work on UNC's
The fix for this is to take the & "\nul" out of the check.




Reply With Quote