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

Enumerate all the drives including Mapped network drives on a serv

Hello,
I want to enumerate all the Drives on the web server using ASP.NET (C#)
Writing code like this works when i use local host but when i try to access
it from another machine it does not show the network drives.
Code:
foreach (string s in arr)
{
s2=s2+s;
}

TextBox1.Text=s2;
This pulls up the drives on my system except Network Drives.

Any help is appreciated.

Thanks,
Pradeep

Nov 19 '05 #1
2 1546
Come on man, you are with Microsoft!

Anyways forwarded your email to Bill Gates, Bummer...........

"Pradeep Sundaram(MSFT)" <Pradeep Sundaram(MSFT)@discussions.microsoft.com>
wrote in message news:A2**********************************@microsof t.com...
Hello,
I want to enumerate all the Drives on the web server using ASP.NET (C#)
Writing code like this works when i use local host but when i try to
access
it from another machine it does not show the network drives.
Code:
foreach (string s in arr)
{
s2=s2+s;
}

TextBox1.Text=s2;
This pulls up the drives on my system except Network Drives.

Any help is appreciated.

Thanks,
Pradeep

Nov 19 '05 #2
so what man
if u know the answer let me know
"Pradeep Sundaram(MSFT)" wrote:
Hello,
I want to enumerate all the Drives on the web server using ASP.NET (C#)
Writing code like this works when i use local host but when i try to access
it from another machine it does not show the network drives.
Code:
foreach (string s in arr)
{
s2=s2+s;
}

TextBox1.Text=s2;
This pulls up the drives on my system except Network Drives.

Any help is appreciated.

Thanks,
Pradeep

Nov 19 '05 #3

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

Similar topics

2
by: Jim Richards | last post by:
I have been told by a local PC club technician that 98SE cannot read NTFS drives in a network. Is this true? TIA, Jim.
2
by: lastusernameleft | last post by:
Is there a .NET method for doing this? I haven't found anything else that works. Thanks
4
by: igg | last post by:
I'm developing a .net application and I need to save files in a network drive. I need to create a subdirectory and I've tried this: Directory.SetCurrentDirectory(Path); ...
6
by: Default User | last post by:
Hi How can i look for network share folders and copy a text file to it? I've been looking into how i can do this in the documention but with no luck. I found a little on of the web but i dont...
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...
2
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...
2
by: Ben | last post by:
Hi, Thanks for reading this post... I am trying to get the computer/server names from the mapped drives on the Clients PC when they select a file from the upload "browse" button. When the user...
0
by: Daffydd | last post by:
Hi all, This one's driving me up a wall! We have a small office network, Windows SBS 2003, nothing fancy - recently upgraded from an old Compaq running Novell. Back in the day we used the "F"...
14
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
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...
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
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...

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.