Is there a better way to test if a string represents a shortcut link?
Sub TESTblnShortCut() MsgBox blnShortCut("C:Blotter200604041") MsgBox blnShortCut("C:Blotter200604041", ".lnk") MsgBox blnShortCut("C:Blotter200604041", ".bat") End Sub Public Function blnShortCut(ByVal strfile As String, Optional strExtent) As Boolean On Error GoTo Failed If FileLen(strfile) > 0 Then Else End If Exit Function Failed: Dim strExt As String If IsMissing(strExtent) Then strExt = ".lnk" Else strExt = strExtent End If strfile = strfile & strExt blnShortCut = blnShortCut2(strfile) End Function Public Function blnShortCut2(ByVal strfile As String) As Boolean On Error GoTo Failed If FileLen(strfile) > 0 Then Else End If blnShortCut2 = True Exit Function Failed: End Function