1. RE: shell to MS explorer

> -----Original Message-----
> From: gwalters at sc.rr.com [mailto:gwalters at sc.rr.com]

> I have found this doc for VB but the following command 
> returns a -1 from IE
> apparently. any helpful ideas on why this won't work?
> 
> key = system_exec ("d:\\Microsoft Internet\\IExplorer.exe
> D:\\euphoria\\ACUdata\\DUMP.HTM",0)
> 
> Private Sub StartWithArguments() 'Declare and instantiate a 
> new process
> component. Dim myproc As System.Diagnostics.Process myproc = New
> System.Diagnostics.Process 'Do not receive an event when the 
> process exits.
> myproc.EnableRaisingEvents = False 'Start Internet Explorer, 
> passing in a
> web page. myproc.Start("IExplore.exe", 
> "http://www.microsoft.com") End Sub

If you're using win32lib, you could use ShellExecute[Ex] (you could use them
if you're not using win32lib, but you'd have to wrap them):

ShellExecute( "explore", "http://www.microsoft.com", SW_SHOWNORMAL)

You could also try:

ShellExecuteEx( "open", "iexplore.exe", "http://www.microsoft.com", "",
SW_SHOWNORMAL, 0)

Matt Lewis

new topic     » topic index » view message » categorize

2. RE: shell to MS explorer

I finally figured this out. you should run this

system("start iexplore http://www.rapideuphoria.com/", 0)
        ^^ this is what was missing
I think you need to use start because it is a Win32 app and system() and 
system_exec() use a DOS call which needs start to call Win312 apps.


gwalters at sc.rr.com wrote:
> Can some one show me how from EU to shell to ms explorer and pass it a 
> html
> file name to open?
> 
> thanks if you can.
> 
> George Walters
> 
>

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu