How to open a removable drive window .
-
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
-
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
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 -
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, 2008Hi, Thanks for your respond. It will allows other drive to open but i need only removable drive to open. Thanks and Regards Ch.Gai3
-
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
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.
-
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
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 -
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
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.