On Error Resume Next . , , . :
On Error Resume Next
GetAttr strFilePath
If Err Then
On Error GoTo 0
'Deal with "no file" scenario.
Else
On Error GoTo 0
'Open and process the file.
End If
, . Err.Number .
, GoTo, , . VBScript , , , , GOTos .
- ... Trust the Force, Luke .