Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. retrive client logical drives in alternative of Directory.GetLogicalDrive which used in server side

retrive client logical drives in alternative of Directory.GetLogicalDrive which used in server side

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netsysadminhelp
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Punit Belani
    wrote on last edited by
    #1

    hi, everybody.. I want to retrieve client drives (in short file manager). Actually i am trying with Directory.GetLogicalDrive() function, but its returns logical drive of the server in which asp.net website is installed. i want logical drives from client PC.. i.e. i want to client to be select some files or folder from own PC and by that path i upload whole folder or files without using fileupload control limitations. im using this code right now foreach (string drive in Directory.GetLogicalDrives()) { TreeNode tn = new TreeNode(); tn.Text = drive; tn.Value = drive; TreeView1.Nodes.Add(tn); } thanks in advance... please i m really stuck at this. Best Regards, Punit Belani

    S W 2 Replies Last reply
    0
    • P Punit Belani

      hi, everybody.. I want to retrieve client drives (in short file manager). Actually i am trying with Directory.GetLogicalDrive() function, but its returns logical drive of the server in which asp.net website is installed. i want logical drives from client PC.. i.e. i want to client to be select some files or folder from own PC and by that path i upload whole folder or files without using fileupload control limitations. im using this code right now foreach (string drive in Directory.GetLogicalDrives()) { TreeNode tn = new TreeNode(); tn.Text = drive; tn.Value = drive; TreeView1.Nodes.Add(tn); } thanks in advance... please i m really stuck at this. Best Regards, Punit Belani

      S Offline
      S Offline
      Sandeep Mewara
      wrote on last edited by
      #2

      punit belani wrote:

      i.e. i want to client to be select some files or folder from own PC

      You have to use any Scripting language to do so. Use Javascript to get the files on the client system and then bind it to tree or any control you want to show the result.

      P 1 Reply Last reply
      0
      • S Sandeep Mewara

        punit belani wrote:

        i.e. i want to client to be select some files or folder from own PC

        You have to use any Scripting language to do so. Use Javascript to get the files on the client system and then bind it to tree or any control you want to show the result.

        P Offline
        P Offline
        Punit Belani
        wrote on last edited by
        #3

        first of all thanks for reply. i am new to scripting language, can you give some broader idea, for using java scripts for this purpose. or give some useful links.

        1 Reply Last reply
        0
        • P Punit Belani

          hi, everybody.. I want to retrieve client drives (in short file manager). Actually i am trying with Directory.GetLogicalDrive() function, but its returns logical drive of the server in which asp.net website is installed. i want logical drives from client PC.. i.e. i want to client to be select some files or folder from own PC and by that path i upload whole folder or files without using fileupload control limitations. im using this code right now foreach (string drive in Directory.GetLogicalDrives()) { TreeNode tn = new TreeNode(); tn.Text = drive; tn.Value = drive; TreeView1.Nodes.Add(tn); } thanks in advance... please i m really stuck at this. Best Regards, Punit Belani

          W Offline
          W Offline
          walterhevedeich
          wrote on last edited by
          #4

          Use javascript to achieve what you want. Refer to this link for the code sample. It uses ActiveX to retrieve a list of drives in the client machine. However, this only works on IE as Mozilla doesn't support ActiveX by default. You need to install an addin for that. http://www.devarticles.com/c/a/JavaScript/Advanced-JavaScript-with-Internet-Explorer-Working-with-Drives-and-More/

          P 1 Reply Last reply
          0
          • W walterhevedeich

            Use javascript to achieve what you want. Refer to this link for the code sample. It uses ActiveX to retrieve a list of drives in the client machine. However, this only works on IE as Mozilla doesn't support ActiveX by default. You need to install an addin for that. http://www.devarticles.com/c/a/JavaScript/Advanced-JavaScript-with-Internet-Explorer-Working-with-Drives-and-More/

            P Offline
            P Offline
            Punit Belani
            wrote on last edited by
            #5

            thanks for reply, im now start working on it.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups