Click here to Skip to main content
15,891,204 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: open file directory Pin
captainmogo18-Mar-09 7:52
captainmogo18-Mar-09 7:52 
GeneralRe: open file directory Pin
iamalik18-Mar-09 8:03
professionaliamalik18-Mar-09 8:03 
GeneralRe: open file directory Pin
captainmogo18-Mar-09 8:17
captainmogo18-Mar-09 8:17 
GeneralRe: open file directory Pin
iamalik18-Mar-09 8:36
professionaliamalik18-Mar-09 8:36 
GeneralRe: open file directory Pin
tech60318-Mar-09 14:56
tech60318-Mar-09 14:56 
AnswerRe: open file directory Pin
Luc Pattyn18-Mar-09 8:31
sitebuilderLuc Pattyn18-Mar-09 8:31 
GeneralRe: open file directory Pin
captainmogo18-Mar-09 8:39
captainmogo18-Mar-09 8:39 
AnswerRe: open file directory [modified] Pin
Alan N18-Mar-09 8:54
Alan N18-Mar-09 8:54 
Hi,
I think that you want to open a Windows Explorer window at a particular directory for the convenience of your users, correct?

In which case use

System.Diagnostics.Process.Start(pathname) [EDITED typo]

The Start method has many overloads and this simple one uses the associated application to open pathname.

So as an example, if pathname is d:\logfile.txt then Notepad is used to open the file d:\logfile.txt.

What you might not have realised is that directories are associated with Explorer. As a consequence if pathname is a directory, e.g. d:\logfiles then the Start method will open an Explorer windows at the d:\logfiles directory.

Alan.

[EDIT: Like Luc said a few minutes ago]

modified on Wednesday, March 18, 2009 4:09 PM

GeneralRe: open file directory Pin
captainmogo18-Mar-09 9:04
captainmogo18-Mar-09 9:04 
GeneralRe: open file directory [modified] Pin
Alan N18-Mar-09 9:27
Alan N18-Mar-09 9:27 
GeneralRe: open file directory Pin
captainmogo19-Mar-09 3:28
captainmogo19-Mar-09 3:28 
Questioncalling a menu form from another menu Pin
Member 462416918-Mar-09 7:04
Member 462416918-Mar-09 7:04 
AnswerRe: calling a menu form from another menu Pin
iamalik18-Mar-09 7:38
professionaliamalik18-Mar-09 7:38 
GeneralRe: calling a menu form from another menu Pin
0x3c018-Mar-09 8:21
0x3c018-Mar-09 8:21 
Questionhow to improve my 2D collision detection system? [modified] Pin
O.G.I.18-Mar-09 4:08
O.G.I.18-Mar-09 4:08 
AnswerRe: how to improve my 2D collision detection system? Pin
Dave Kreskowiak18-Mar-09 6:04
mveDave Kreskowiak18-Mar-09 6:04 
GeneralRe: how to improve my 2D collision detection system? Pin
O.G.I.18-Mar-09 9:18
O.G.I.18-Mar-09 9:18 
GeneralRe: how to improve my 2D collision detection system? Pin
Dave Kreskowiak18-Mar-09 10:26
mveDave Kreskowiak18-Mar-09 10:26 
AnswerRe: how to improve my 2D collision detection system? Pin
riced18-Mar-09 7:32
riced18-Mar-09 7:32 
AnswerRe: how to improve my 2D collision detection system? Pin
Luc Pattyn18-Mar-09 8:39
sitebuilderLuc Pattyn18-Mar-09 8:39 
QuestionIs there a way to bypass the form_load event of vb.net windows application? Pin
rains197918-Mar-09 1:42
rains197918-Mar-09 1:42 
AnswerRe: Is there a way to bypass the form_load event of vb.net windows application? Pin
Eddy Vluggen18-Mar-09 1:58
professionalEddy Vluggen18-Mar-09 1:58 
GeneralRe: Is there a way to bypass the form_load event of vb.net windows application? Pin
rains197918-Mar-09 2:49
rains197918-Mar-09 2:49 
GeneralRe: Is there a way to bypass the form_load event of vb.net windows application? Pin
Eddy Vluggen18-Mar-09 2:57
professionalEddy Vluggen18-Mar-09 2:57 
GeneralRe: Is there a way to bypass the form_load event of vb.net windows application? Pin
rains197918-Mar-09 3:08
rains197918-Mar-09 3:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.