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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Windows Forms
  4. How to open a removable drive window .

How to open a removable drive window .

Scheduled Pinned Locked Moved Windows Forms
csharptutorial
6 Posts 4 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.
  • C Offline
    C Offline
    Ch Gayatri Subudhi
    wrote on last edited by
    #1

    Hi, How to open a removable drive window with all the folders whn we click a button of a windows form using c#.net. Thanks and Regards Ch.Gayatri

    D A 2 Replies Last reply
    0
    • C Ch Gayatri Subudhi

      Hi, How to open a removable drive window with all the folders whn we click a button of a windows form using c#.net. Thanks and Regards Ch.Gayatri

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Look at the Process class and just launch the command line "EXPLORER.EXE driveSpec:". For example "EXPLORER.EXE C:".

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008

      C 1 Reply Last reply
      0
      • D Dave Kreskowiak

        Look at the Process class and just launch the command line "EXPLORER.EXE driveSpec:". For example "EXPLORER.EXE C:".

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007, 2008

        C Offline
        C Offline
        Ch Gayatri Subudhi
        wrote on last edited by
        #3

        Hi, Thanks for your respond. It will allows other drive to open but i need only removable drive to open. Thanks and Regards Ch.Gai3

        L D 2 Replies Last reply
        0
        • C Ch Gayatri Subudhi

          Hi, Thanks for your respond. It will allows other drive to open but i need only removable drive to open. Thanks and Regards Ch.Gai3

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          Hi, have a look at the DriveInfo class. :)

          Luc Pattyn [Forum Guidelines] [My Articles]


          The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.


          1 Reply Last reply
          0
          • C Ch Gayatri Subudhi

            Hi, Thanks for your respond. It will allows other drive to open but i need only removable drive to open. Thanks and Regards Ch.Gai3

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #5

            So, you want an Explorer window with access only to the removable drive?? Cna't do it. Explorer gives you access just like you opened My Computer. You'd have to write your own version of an Explorer window with just the functionality you want.

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007, 2008

            1 Reply Last reply
            0
            • C Ch Gayatri Subudhi

              Hi, How to open a removable drive window with all the folders whn we click a button of a windows form using c#.net. Thanks and Regards Ch.Gayatri

              A Offline
              A Offline
              Alan N
              wrote on last edited by
              #6

              Hi, Explorer.exe has command line options and it is possible to restrict the view to one path. e.g. to view the c: drive only

              explorer.exe /e, /root,c:\

              The full syntax list is available here: http://support.microsoft.com/default.aspx?scid=KB;EN-US;q152457[^] Alan.

              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