473,386 Members | 1,819 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,386 software developers and data experts.

opening network folders

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
5 5155
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: ImraneA | last post by:
Hi there Situration :- One of the servers disk drive is very "dodgy" - decided to move folders for databases from 1 server to another. I hardcore the letter of drives - as fixed - e.g. V:\ used...
5
by: Niloday | last post by:
Hi All, I am trying to access a mapped network drive from a service that I have created. The service needs to create/delete folders/files on a network drive. When I tried to connect to a...
1
by: Steve Randall | last post by:
I need to build an application that allows the user to select folders from any number of drives located on any number of servers on a network. In effect, I am trying to mimic the functionality of the...
1
by: brian.oneil2 | last post by:
Is there a way to install this onto a network file share and allow a team to access it? I would say share a CD from a networked CD drive, but there are multiple CD's that would have to be inserted....
0
by: Joe | last post by:
Hi, Quick question - I'm pretty new to asp.net. I have a network that has my development machine (XP) and 2 others (both W2K) on the same subnet. When trying to access folders protected by...
0
by: Dennis | last post by:
I have tried to use the IWshRuntimeLibrary and ManagementObjectSearcher("SELECT * FROM Win32_LogicalDisk") to get all Logical Drives, Mapped Network Drives, Shared Folders and Shared Drives with...
0
by: NoWhereMan | last post by:
Hello, I'm trying to get the list of shared folders of a network computer and add them to a combo box. I'm using the bellow code in VB .NET. Code ==== Private Sub EnumShares(ByVal Machine As...
0
by: =?Utf-8?B?cG9u?= | last post by:
Background: Since Microsoft’s security update 896358, security update 840315 or Windows Server 2003 Service Pack 1, you can not longer open and see topic content in help files on the network....
2
by: moodyman13 | last post by:
Hi all, Hoping someone can help me. I'm using WSH to automatically map a network drive when someone opens a webpage. Below are the codes <HTML> <Body> <script language="VBScript"...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.