Mega Code Archive

 
Categories / VisualBasic Script / File Path
 

Determining whether a path exists

Function PathExists(pname) As Boolean     Dim x As String     On Error Resume Next     x = GetAttr(pname) And 0     If Err = 0 Then PathExists = True _       Else PathExists = False End Function