Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run up Internet Explorer with a URL

Status
Not open for further replies.

LucieLastic

Programmer
May 9, 2001
1,694
GB
hi

I can run Internet Explorer using CreateProcess but how can I pass a URL to it (in the var Exeline) so it displays a specific web page when it's run?

Exeline := 'C:\Program Files\Internet Explorer\IEXPLORE.EXE';

if not CreateProcess(Pchar(exeline), nil,nil,nil,false,
NORMAL_PRIORITY_CLASS, nil,nil,Startupinfo, processinfo) then ...

many thanks for help
lou

 
Hey Lou,

You could include ShellApi in your Uses list and use:
Code:
ShellExecute(Handle, 'Open', '[URL unfurl="true"]http://www.tek-tips.com',[/URL] nil, nil, SW_SHOWNORMAL);

Hope this helps!

Clive [infinity]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"To err is human, but to really foul things up you need a computer."
Paul Ehrlich
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To get the best answers from this forum see: faq102-5096
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top