Forum posts for iexplore.exe

invoke iexplore.exe in already launched instance using ShellExecuteEx

I used ShellExecuteEx to call iexplore.exe, Whenever I start the application a new instance of internet explorer is created irrespective of, internet explorer already opened or not.

I want to change this, if already an instance of the Internet explorer is there, I need to open a new tab in that instance with the address I am passing to the ShExecInfo.lpParameters, thus without creating a new window. Is there a way to do this? Please advice..

UPADATE:
In the below answer I have a problem, when I set the lpFile parameter as 'iexplore.exe' and lpParameters as 'www.google.com', two windows get opened. If I ignore lpfile parameter, then the below code opens default browsers in some machine. I want only internet explorer to get opened. please help..

int WINAPI WinMain ( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow ) {


ShellExecute(0,L'open',L'iexplore.exe', L'http://www.google.com',0,SW_SHOWDEFAULT );


ShellExecute(0,L'open', L'iexplore.exe', L'http://www.yahoo.com',0,SW_SHOWDEFAULT );

return 0;

}

View complete forum thread with replies

Other posts related to iexplore.exe

See Related Forum Messages: Follow the Links Below to View Complete Thread

How can I find programatically where iexplore.exe is?
Strange ProcessorAffinity issue with IEXPLORE.exe
iexplore.exe process opens but I can't see it
Batch file to terminate all instances of IExplore.exe
Debugging SHDocVw.InternetExplorer.Quit not closing iexplore.exe process
Process.Start(“IExplore.exe”); <— Is this reliable?
VS2010 and IE10 Attaching the Script debugger to process iexplore.exe failed
How to capture keystrokes of iexplore.exe only?
Process.Start(“IEXPLORE.EXE”) immediately fires the Exited event after launch.. why?
Unhandled exception at 0x75619617 (KernelBase.dll) in iexplore.exe
Process.Kill does not seem to work with iexplore.exe
invoke iexplore.exe in already launched instance using ShellExecuteEx
Run iexplore.exe invisibly
Attaching the Script debugger to process '[XXXX] IEXPLORE.EXE' on machine 'NAME' failed
Can I pass the -f parameter to iexplore.exe when using Watir?

What is the carbon footprint of your coffee?

Is it low? Is it high? Can this things really kill the planet Earth? Maybe the answer will surprise you. Maybe not.