Enumerate all the drives including Mapped network drives on a serv

Discussion in 'ASP .Net' started by =?Utf-8?B?UHJhZGVlcCBTdW5kYXJhbShNU0ZUKQ==?=, Feb 25, 2005.

  1. 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
     
    =?Utf-8?B?UHJhZGVlcCBTdW5kYXJhbShNU0ZUKQ==?=, Feb 25, 2005
    #1
    1. Advertising

  2. =?Utf-8?B?UHJhZGVlcCBTdW5kYXJhbShNU0ZUKQ==?=

    Vaibhav Guest

    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:...
    > 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
    >
     
    Vaibhav, Feb 25, 2005
    #2
    1. Advertising

  3. 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
    >
     
    =?Utf-8?B?UHJhZGVlcCBTdW5kYXJhbShNU0ZUKQ==?=, Feb 26, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. chris
    Replies:
    2
    Views:
    1,851
    Bryan Donaldson
    Feb 19, 2004
  2. =?Utf-8?B?RGVhbiBNY0NhcnRlbg==?=

    Retrieving UNC Path of Mapped Drives on Client Machine

    =?Utf-8?B?RGVhbiBNY0NhcnRlbg==?=, Apr 30, 2004, in forum: ASP .Net
    Replies:
    7
    Views:
    5,645
    =?Utf-8?B?RGVhbiBNY0NhcnRlbg==?=
    May 20, 2004
  3. chris
    Replies:
    1
    Views:
    166
    Hernan de Lahitte
    Feb 19, 2004
  4. Gary Chan

    Enumerate all the remote drives

    Gary Chan, Aug 9, 2003, in forum: Perl Misc
    Replies:
    2
    Views:
    137
    Jay Tilton
    Aug 10, 2003
  5. king
    Replies:
    1
    Views:
    303
Loading...

Share This Page