Place this in the form load event

Code:
Dim strBuffer As String

strBuffer = Command

If Trim$(strBuffer) = -1 Then
  'True so Do Something
ElseIf Trim$(strBuffer) = 0 Then
  'False so do other
Else
  'no command line so check file any way.
End If
Regards