DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2005
    Posts
    2

    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
    Location
    Portland, OR
    Posts
    8,387
    Phil Weber
    http://www.philweber.com

    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

Bookmarks

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
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links