trying to get Error Number

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I have a .chm that is called by a cmdButton:

Shell "HH.exe " & CurrentProject.Path & "\myfile.chm", vbNormalFocus

which works, fine, but am trying to give User more info if they delete or move
the .chm file from ProjectPath.

When I try to get an Error number by renaming the chm, I get a dialog box with
"Help" as the title, and just a line that says:
Cannot open the file: (path)\myfile.chm.
It appears that the help compiler generated the diaglog box?

Is there a particular error I can trap to generate a more detailed error
message, or should I just check to see if the file exists in the proper location
before calling the chm file. If the latter, how do I do that?

Thanks, John


.



Relevant Pages

  • Re: Where is code for F1 Help text?
    ... the HelpFile property belongs to the VBA project rather than the form. ... HLP is the older format, used by the WinHelp system that's vbeen ... CHM is used by the more modern HTML Help system, ... If it points to a HLP or CHM file, ...
    (microsoft.public.word.vba.general)
  • IE: CHM Attacks are still alive (CHM attack without showHelp())
    ... CHM Attacks are still alive ... Vendor: Microsoft Corp. ... it is still possible to execute a chm file ...
    (Bugtraq)
  • Re: Create chm file
    ... created some notes now i want that notes in chm file. ... For creating the HTMLHelp (chm) files, you can use the free HTMLHelp ... Private Const HH_UNINITIALIZE = &H1D ...
    (comp.lang.basic.visual.misc)
  • Re: HELP ! : Trojanised HTML: Internet Exporer 5 and 6 [technical exercise]
    ... > within the *.chm into the same Temporary Internet File. ... I made a proof of concept on a chm exe dropper a while back, ... to a chm file, and they are done. ... come of that.below is the html script that is capable of it. ...
    (Bugtraq)
  • Re: trying to get Error Number
    ... MsgBox "Cannot find the .chm file!" ... Ken Snell ... It appears that the help compiler generated the diaglog box? ...
    (microsoft.public.access.formscoding)