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. General Programming
  3. Visual Basic
  4. Open Directory

Open Directory

Scheduled Pinned Locked Moved Visual Basic
helpquestioncsharptutorial
7 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.
  • L Offline
    L Offline
    lone_wolf351
    wrote on last edited by
    #1

    I'm a newbie at VB.Net so please don't smite me for this stupid question I have a form with various buttons eg. movies, music, setups etc.... and i would like a windows explorer window to open up to the relevent directory on my HDD. Example if i clicked "Movies" it would open "D:\Movies" in a normal windows explorer window. The only problem with my plan is that I don't know the code to make this happen. so could anyone help me?? Thank You

    C W 2 Replies Last reply
    0
    • L lone_wolf351

      I'm a newbie at VB.Net so please don't smite me for this stupid question I have a form with various buttons eg. movies, music, setups etc.... and i would like a windows explorer window to open up to the relevent directory on my HDD. Example if i clicked "Movies" it would open "D:\Movies" in a normal windows explorer window. The only problem with my plan is that I don't know the code to make this happen. so could anyone help me?? Thank You

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Process.start will take a path, and open it, I believe.

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

      L 1 Reply Last reply
      0
      • C Christian Graus

        Process.start will take a path, and open it, I believe.

        Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

        L Offline
        L Offline
        lone_wolf351
        wrote on last edited by
        #3

        Thanks a Million Mate that worked!

        1 Reply Last reply
        0
        • L lone_wolf351

          I'm a newbie at VB.Net so please don't smite me for this stupid question I have a form with various buttons eg. movies, music, setups etc.... and i would like a windows explorer window to open up to the relevent directory on my HDD. Example if i clicked "Movies" it would open "D:\Movies" in a normal windows explorer window. The only problem with my plan is that I don't know the code to make this happen. so could anyone help me?? Thank You

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

          You need to include a FolderBrowserDialog in your program.;)

          D 1 Reply Last reply
          0
          • W WestSideRailways

            You need to include a FolderBrowserDialog in your program.;)

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

            Why? The specs in the OP didn't say anything about picking the folder...

            Dave Kreskowiak Microsoft MVP - Visual Basic

            W 1 Reply Last reply
            0
            • D Dave Kreskowiak

              Why? The specs in the OP didn't say anything about picking the folder...

              Dave Kreskowiak Microsoft MVP - Visual Basic

              W Offline
              W Offline
              WestSideRailways
              wrote on last edited by
              #6

              Dave Kreskowiak wrote:

              Why? The specs in the OP didn't say anything about picking the folder...

              I have a form with various buttons eg. movies, music, setups etc.... and i would like a windows explorer window to open up to the relevent directory on my HDD. Example if i clicked "Movies" it would open "D:\Movies" in a normal windows explorer window. You can also tell FBdialog what dir to start from, which open up in a windows explorer windows. Which is what the person wanted. As long as everybody is happy and get the answers that help them.......

              D 1 Reply Last reply
              0
              • W WestSideRailways

                Dave Kreskowiak wrote:

                Why? The specs in the OP didn't say anything about picking the folder...

                I have a form with various buttons eg. movies, music, setups etc.... and i would like a windows explorer window to open up to the relevent directory on my HDD. Example if i clicked "Movies" it would open "D:\Movies" in a normal windows explorer window. You can also tell FBdialog what dir to start from, which open up in a windows explorer windows. Which is what the person wanted. As long as everybody is happy and get the answers that help them.......

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

                He says, he's a newbie. To me, that means he want to open a hard coded (I know, bad idea!) path for each button. Now, if he wanted to write a configuration section for his app, then he can supply the FBDialog to get the folder and make the app a bit more user friendly. But, I didn't see that in the OP. :-D I know, it sounds like I'm harpin' on you. I'm really not. If the OP wants to finish reading this thread, then he can see this idea and start asking questions to take his app to the next level.

                Dave Kreskowiak Microsoft MVP - Visual Basic

                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