473,397 Members | 2,068 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Autorun needs to open HTML browser, How?

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.
Nov 16 '05 #1
3 1666
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" <jo***@microcompcreative.com> wrote in message
news:eY**************@TK2MSFTNGP12.phx.gbl...
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.

Nov 16 '05 #2
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.

Nov 16 '05 #3
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" <no************@planet.nl> wrote in message
news:Oh**************@TK2MSFTNGP11.phx.gbl...
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.


Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: M.E.Farmer | last post by:
Hello all, I needed this and did a quick search around and didn't see any examples. I knew it had to be easy, and it was. So here it is a CD_Autorun program in python. It is very simple and...
2
by: Liath Macha | last post by:
How can a distribution CD AUTORUN.INF file be made to open an HTML page using the system browser rather than running an exe on the distribution CD? Thanks Liath
11
by: Ray5531 | last post by:
I'm looking for a good Freeware autorun maker for my C# application.Any suggessions? Thanks
2
by: Joe Cool | last post by:
I know this is probably not the proper newsgroup to ask this question, but I do not know which one is. And most of you guys here know a lot about windows programming so I am taking a chance some...
0
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: Overview NOTE- This complete article on "Windows Autorun FAQs" applies theoretically to all Windows NT-based OSes till Windows Vista (and probably Vista's successors too)....
0
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: Description NOTE- If you are unfamiliar with the concept of autoruns, then read "Windows Autorun FAQs: Overview". Que-1: How can I safely remove or edit the autorun...
0
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: List of autostart locations Linked from the Original article- "Windows Autorun FAQs: Description". Que: Can you list all the autostart locations for windows? Ans: Here is...
0
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: Programs dealing with autoruns Linked from the Original article- "Windows Autorun FAQs: Description". Que: Can you list programs that help me to view/modify the autoruns...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.