PC Review


Reply
Thread Tools Rate Thread

Autorun needs to open HTML browser, How?

 
 
Joel Barsotti
Guest
Posts: n/a
 
      29th Dec 2004
So I know how to setup the autorun.ini to to execute a paticular file.

One solution is to use shellexecute, but say on my machine that opens up the
HTML document in visual studio.

So I need to create a small app to open IE with a paticular URL and it would
be helpfull if I could control the size, poistion and menus associated with
it.

Thanks for the help.


 
Reply With Quote
 
 
 
 
Nick Malik [Microsoft]
Guest
Posts: n/a
 
      30th Dec 2004
that will work, until you get to a machine that has firefox as the default
browser.

Why does Visual Studio open for html files on your machine? Doesn't do that
on any of my machines?

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Joel Barsotti" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> So I know how to setup the autorun.ini to to execute a paticular file.
>
> One solution is to use shellexecute, but say on my machine that opens up

the
> HTML document in visual studio.
>
> So I need to create a small app to open IE with a paticular URL and it

would
> be helpfull if I could control the size, poistion and menus associated

with
> it.
>
> Thanks for the help.
>
>



 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      30th Dec 2004
Joe,

I am not sure about your question however this is a way to start the default
browser.
There are more properties for the ProcessStartInfo so maybe you can look for
that for yourself when this is somehting you need.

\\\\
System.Diagnostics.Process p = new System.Diagnostics.Process();
System.Diagnostics.ProcessStartInfo pi =
new System.Diagnostics.ProcessStartInfo();
pi.FileName = "http://msdn.microsoft.com";
pi.UseShellExecute = true;
p.StartInfo = pi;
p.Start();
////

Cor

"Joel Barsotti"

> So I know how to setup the autorun.ini to to execute a paticular file.
>
> One solution is to use shellexecute, but say on my machine that opens up
> the
> HTML document in visual studio.
>
> So I need to create a small app to open IE with a paticular URL and it
> would
> be helpfull if I could control the size, poistion and menus associated
> with
> it.
>
> Thanks for the help.
>
>



 
Reply With Quote
 
Joel Barsotti
Guest
Posts: n/a
 
      30th Dec 2004
This is along the lines of what I want to do.

Is their anyway that I can control how the browser opens? I'm looking for
the same kind of control you'd get from using the javascript window.open()
command.


"Cor Ligthert" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Joe,
>
> I am not sure about your question however this is a way to start the

default
> browser.
> There are more properties for the ProcessStartInfo so maybe you can look

for
> that for yourself when this is somehting you need.
>
> \\\\
> System.Diagnostics.Process p = new System.Diagnostics.Process();
> System.Diagnostics.ProcessStartInfo pi =
> new System.Diagnostics.ProcessStartInfo();
> pi.FileName = "http://msdn.microsoft.com";
> pi.UseShellExecute = true;
> p.StartInfo = pi;
> p.Start();
> ////
>
> Cor
>
> "Joel Barsotti"
>
> > So I know how to setup the autorun.ini to to execute a paticular file.
> >
> > One solution is to use shellexecute, but say on my machine that opens up
> > the
> > HTML document in visual studio.
> >
> > So I need to create a small app to open IE with a paticular URL and it
> > would
> > be helpfull if I could control the size, poistion and menus associated
> > with
> > it.
> >
> > Thanks for the help.
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I open html-file in Word from web browser? =?Utf-8?B?TVI=?= Microsoft Word Document Management 2 24th Jul 2006 04:12 PM
open html file from database to new browser =?Utf-8?B?UHVob25pZW4=?= Microsoft ASP .NET 1 23rd Feb 2005 04:15 PM
HTML Links in email won't open in ANY browser window David Reed Microsoft Outlook 7 6th Nov 2003 08:05 PM
HTML Links in email won't open in ANY browser window David Reed Microsoft Windows 2000 Setup 7 6th Nov 2003 08:05 PM
Can't see a webpage when i open my .html text file in the browser napa Windows XP Internet Explorer 0 9th Oct 2003 04:02 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:49 AM.