473,508 Members | 2,460 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Accessing all Mapped drives using c# in a Network

366 Contributor
Hi Friends,

I want to develop a windows service ,such that it should access all the Mapped drives to the server in WAN.

I am using windows 2003 Server R2 ,where we an option of DFS but any one have an idea how to access this DFS using c#

Any help Please

Thanks& Regards
nmsreddi
Jun 17 '08 #1
4 1823
Plater
7,872 Recognized Expert Expert
If it's a mapped drive, just enumerate over the drive list?
Jun 18 '08 #2
nmsreddi
366 Contributor
If it's a mapped drive, just enumerate over the drive list?
Hi Platter,

Thanks for your Reply ,

But first i have to access all the shared drives in network na , and i want to arrange them in directory hierarchy like our windows .

the best example what i want to do is just similar to DFS(distributed file system)

in windows2003 server R2 ,in this all the shared drives will be shown as folder hierarchy .

just let me is there any possibility to access DFS technology in C#.

Thanks
Nmsreddi
Jun 19 '08 #3
Plater
7,872 Recognized Expert Expert
Well I know .NET has methods for accessing the ActiveDirectory, you might be able to get network shares through that. I'm not really sure how though.
Jun 19 '08 #4
nmsreddi
366 Contributor
Well I know .NET has methods for accessing the ActiveDirectory, you might be able to get network shares through that. I'm not really sure how though.
Ok fine platter ,i am on my way to finish it, if any new suggestion let me know .


Thanks
nmsreddi
Jun 20 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

36
16315
by: Thomas | last post by:
after spending countless hours trying, i give up and hope to get some help in here. on server1 i got the web myweb.com with my test.asp. in the test.asp, i'm trying to read a file from an UNC...
2
12127
by: lastusernameleft | last post by:
Is there a .NET method for doing this? I haven't found anything else that works. Thanks
2
5768
by: giloosh99 | last post by:
Hello, Im grabbing tables via VB code using visual foxpro ODBC drives. The tables directory is in a mapped network drive. The code works fine and does the job, however if the computer is idle for...
5
21537
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
4525
by: Z0gS | last post by:
I got this problem for the web application I try to access files on a remote server. string dirs = Directory.GetDirectories(@"E:\vehicles") E drive is a map to a network drive. I get the...
3
2095
by: Bonj | last post by:
I have a service which is a Windows Service, but it is running under a User account - I enter my own credentials on installing. It can access network files by specifying the full UNC path, i.e....
2
2847
by: Ian Murrell | last post by:
My application writes a text data file to a folder on another computer. The other computer is mapped by drive letter to the root (C) shared folder, eg as G:. The network is simple peer2peer, shared...
0
1052
by: dodger_web | last post by:
Hi, I want to setup a web server which runs IIS 6.0 + Asp.net 2.0 and windows services for unix 3.5. The asp.net is suposed to run localy, but requires files which reside on a nfs server. ...
14
5358
AnuSumesh
by: AnuSumesh | last post by:
Hi all, I am writing one application using c# in which firstly I m getting impersonating the user and then i want to retrieve mapped Drives. But issue is when I am calling method in following...
0
7321
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
7377
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...
1
7034
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
5623
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5045
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...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1544
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.