Open Directory
-
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
-
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
Process.start will take a path, and open it, I believe.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog
-
Process.start will take a path, and open it, I believe.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog
Thanks a Million Mate that worked!
-
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
You need to include a FolderBrowserDialog in your program.;)
-
You need to include a FolderBrowserDialog in your program.;)
Why? The specs in the OP didn't say anything about picking the folder...
Dave Kreskowiak Microsoft MVP - Visual Basic
-
Why? The specs in the OP didn't say anything about picking the folder...
Dave Kreskowiak Microsoft MVP - Visual Basic
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.......
-
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.......
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