Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / August 2004

Tip: Looking for answers? Try searching our database.

Does global declarated "iexplore.exe" exist?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Przemek - 30 Aug 2004 20:52 GMT
Hi.
I've got a little not typical problem right here.
I would like to open using InternetExplorer ("iexplore.exe") my link from my
application. I do it like that:

System::Diagnostics::Process::Start(S"iexplorer.exe",  S"www.wp.pl");

And it works, but problem is - I have to check does "iexplote.exe" (or other
Web Browser) exist. I do it like that:

if(System::IO::File::Exists(S"iexplorer.exe")  ==  true)
{
       ....
}

and it doesn't work - because "iexplorer.exe" isn't located in local folder
but is declarated as global in system (global example: using CMD check
"iexplorer.exe www.wp.pl" - this page starts correct).

How can I get true/false does this exe file exist, using name of web browser
executable file? ("iexplore.exe" or others execs) declarated as global ?

Good day, thx for wrote.
Tom Dacon - 30 Aug 2004 23:11 GMT
No need to look for Internet Explorer explicitly (unless the page MUST be
run in IE). To open the URL in the machine's default browser, whatever that
may be, just start the URL, as in:

   System::Diagnostics::Process::Start("http://www.wp.pl");

If it really needs to be MS's Internet Explorer, you can look in the
registry for the location of the executable. Under HKEY_CLASSES_ROOT, look
in Applications/iexplore.exe/shell/open/command, and parse the
fully-qualified file specification out of the value of the default key.
It'll look something like:

   "C:\Program Files\Internet Explorer\iexplore.exe" %1

HTH,
Tom Dacon
Dacon Software Consulting

> Hi.
> I've got a little not typical problem right here.
[quoted text clipped - 19 lines]
>
> Good day, thx for wrote.
Morten Wennevik - 31 Aug 2004 06:36 GMT
Hi Przemek,

You can find the location of iexplore.exe in the registry under.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\IEXPLORE.EXE

Signature

Happy Coding!
Morten Wennevik [C# MVP]


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.