By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,587 Members | 1,181 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,587 IT Pros & Developers. It's quick & easy.

opening network folders

P: n/a
For C#, to access an internet page i usually type:

System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.EnableRaisingEvents = false;
proc.StartInfo.FileName = "iexplore";
proc.StartInfo.Arguments = "http://www.website.com";
proc.Start();
proc.WaitForExit();

I tried doing this for a network share, but it doesnt work....can someone
tell me a fast code like this one.

Nov 16 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Hareth,

You should probably set the FileName property to the network path that
you want to browse.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Hareth" <ab******@hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
For C#, to access an internet page i usually type:

System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.EnableRaisingEvents = false;
proc.StartInfo.FileName = "iexplore";
proc.StartInfo.Arguments = "http://www.website.com";
proc.Start();
proc.WaitForExit();

I tried doing this for a network share, but it doesnt work....can someone
tell me a fast code like this one.

Nov 16 '05 #2

P: n/a
Ive tried these and many others. none of them worked out. How does someone
usaully open a network folder (the simplest way possible)

System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.EnableRaisingEvents = false;
proc.StartInfo.FileName = \\computername;
proc.StartInfo.Arguments = "";
proc.Start();
proc.WaitForExit();
----------------------------------------
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.EnableRaisingEvents = false;
proc.StartInfo.FileName = computername;
proc.StartInfo.Arguments = "\\computername";
proc.Start();
proc.WaitForExit();

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:OB**************@TK2MSFTNGP12.phx.gbl...
Hareth,

You should probably set the FileName property to the network path that
you want to browse.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Hareth" <ab******@hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
For C#, to access an internet page i usually type:

System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.EnableRaisingEvents = false;
proc.StartInfo.FileName = "iexplore";
proc.StartInfo.Arguments = "http://www.website.com";
proc.Start();
proc.WaitForExit();

I tried doing this for a network share, but it doesnt work....can someone
tell me a fast code like this one.


Nov 16 '05 #3

P: n/a
Hareth,

When running on my XP professional system, it works fine. However, I do
get an exception on the WaitForExit method, as there is no process
associated with the explorer window.

What are you running on?

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Hareth" <ab******@hotmail.com> wrote in message
news:Ot**************@TK2MSFTNGP09.phx.gbl...
Ive tried these and many others. none of them worked out. How does someone
usaully open a network folder (the simplest way possible)

System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.EnableRaisingEvents = false;
proc.StartInfo.FileName = \\computername;
proc.StartInfo.Arguments = "";
proc.Start();
proc.WaitForExit();
----------------------------------------
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.EnableRaisingEvents = false;
proc.StartInfo.FileName = computername;
proc.StartInfo.Arguments = "\\computername";
proc.Start();
proc.WaitForExit();

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:OB**************@TK2MSFTNGP12.phx.gbl...
Hareth,

You should probably set the FileName property to the network path that you want to browse.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Hareth" <ab******@hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
For C#, to access an internet page i usually type:

System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.EnableRaisingEvents = false;
proc.StartInfo.FileName = "iexplore";
proc.StartInfo.Arguments = "http://www.website.com";
proc.Start();
proc.WaitForExit();

I tried doing this for a network share, but it doesnt work....can someone tell me a fast code like this one.



Nov 16 '05 #4

P: n/a
Hello,

Try this:
http://perso.3ie.org/yannick.lejeune...50245540379495

--
Guillaume BELMAS
Consultant 3IE (http://www.3ie.org)

"Hareth" <ab******@hotmail.com> wrote in message
news:Ot**************@TK2MSFTNGP09.phx.gbl...
| Ive tried these and many others. none of them worked out. How does someone
| usaully open a network folder (the simplest way possible)
|
| System.Diagnostics.Process proc = new System.Diagnostics.Process();
| proc.EnableRaisingEvents = false;
| proc.StartInfo.FileName = \\computername;
| proc.StartInfo.Arguments = "";
| proc.Start();
| proc.WaitForExit();
| ----------------------------------------
| System.Diagnostics.Process proc = new System.Diagnostics.Process();
| proc.EnableRaisingEvents = false;
| proc.StartInfo.FileName = computername;
| proc.StartInfo.Arguments = "\\computername";
| proc.Start();
| proc.WaitForExit();
|
|
|
|
|
| "Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote
in
| message news:OB**************@TK2MSFTNGP12.phx.gbl...
| > Hareth,
| >
| > You should probably set the FileName property to the network path
that
| > you want to browse.
| >
| > Hope this helps.
| >
| >
| > --
| > - Nicholas Paldino [.NET/C# MVP]
| > - mv*@spam.guard.caspershouse.com
| >
| > "Hareth" <ab******@hotmail.com> wrote in message
| > news:%2****************@tk2msftngp13.phx.gbl...
| >> For C#, to access an internet page i usually type:
| >>
| >> System.Diagnostics.Process proc = new System.Diagnostics.Process();
| >> proc.EnableRaisingEvents = false;
| >> proc.StartInfo.FileName = "iexplore";
| >> proc.StartInfo.Arguments = "http://www.website.com";
| >> proc.Start();
| >> proc.WaitForExit();
| >>
| >> I tried doing this for a network share, but it doesnt work....can
someone
| >> tell me a fast code like this one.
| >>
| >>
| >>
| >
| >
|
|
Nov 16 '05 #5

P: n/a
Ab
Thanx Guillaume.....the link you posted was what I needed. Good looking out
"Guillaume Belmas" <gu*****************@3ie.org> wrote in message
news:uo**************@TK2MSFTNGP11.phx.gbl...
Hello,

Try this:
http://perso.3ie.org/yannick.lejeune...50245540379495

--
Guillaume BELMAS
Consultant 3IE (http://www.3ie.org)

"Hareth" <ab******@hotmail.com> wrote in message
news:Ot**************@TK2MSFTNGP09.phx.gbl...
| Ive tried these and many others. none of them worked out. How does
someone
| usaully open a network folder (the simplest way possible)
|
| System.Diagnostics.Process proc = new System.Diagnostics.Process();
| proc.EnableRaisingEvents = false;
| proc.StartInfo.FileName = \\computername;
| proc.StartInfo.Arguments = "";
| proc.Start();
| proc.WaitForExit();
| ----------------------------------------
| System.Diagnostics.Process proc = new System.Diagnostics.Process();
| proc.EnableRaisingEvents = false;
| proc.StartInfo.FileName = computername;
| proc.StartInfo.Arguments = "\\computername";
| proc.Start();
| proc.WaitForExit();
|
|
|
|
|
| "Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote
in
| message news:OB**************@TK2MSFTNGP12.phx.gbl...
| > Hareth,
| >
| > You should probably set the FileName property to the network path
that
| > you want to browse.
| >
| > Hope this helps.
| >
| >
| > --
| > - Nicholas Paldino [.NET/C# MVP]
| > - mv*@spam.guard.caspershouse.com
| >
| > "Hareth" <ab******@hotmail.com> wrote in message
| > news:%2****************@tk2msftngp13.phx.gbl...
| >> For C#, to access an internet page i usually type:
| >>
| >> System.Diagnostics.Process proc = new
System.Diagnostics.Process();
| >> proc.EnableRaisingEvents = false;
| >> proc.StartInfo.FileName = "iexplore";
| >> proc.StartInfo.Arguments = "http://www.website.com";
| >> proc.Start();
| >> proc.WaitForExit();
| >>
| >> I tried doing this for a network share, but it doesnt work....can
someone
| >> tell me a fast code like this one.
| >>
| >>
| >>
| >
| >
|
|

Nov 16 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.