DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2005

    Help calling HTML page

    I have a VB6 app that I want to display HTML directions. The Shell command seems to require a .EXE to run. It will not accept just the target html page such as:
    Shell "C:\Data\Page.htm", vbNormalFocus
    This returns a "File not Found" error. Is there any way to make a webpage display using just the page info?

    The command:
    Shell "IEXPLORE.EXE c:\data\page.htm", vbNormalFocus
    does not work either, as the Shell command needs the full path to the .EXE. The only way I could get this to work at all was with the command:
    Shell "C:\Program Files\Internet Explorer\IEXPLORE.EXE c:\data\page.htm", vbNormalFocus
    Is there any way to call the default HTML viewer (IE, Mozilla, etc)? I do not want to hard code a path to IE in the code. The user's installation may be non-standard or have IE removed all together.

  2. #2
    Join Date
    Nov 2003
    Portland, OR
    Phil Weber

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

Similar Threads

  1. How to load html page ?
    By smita in forum Java
    Replies: 1
    Last Post: 05-04-2005, 12:10 PM
  2. run dos command from html page
    By steve hamilton in forum Web
    Replies: 3
    Last Post: 05-20-2002, 07:00 PM
  3. Replies: 1
    Last Post: 05-07-2002, 10:32 AM
  4. Replies: 0
    Last Post: 02-22-2002, 07:44 AM
  5. Replies: 2
    Last Post: 02-10-2001, 02:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.