Folder Path

  • Thread starter Thread starter Jacek Jurkowski
  • Start date Start date
J

Jacek Jurkowski

How to ensure that the folder path
selected by the user is located on
local disc drive (not an usb, network
or other), solid local drive only ...
 
Thanks. That's what i was looking for...

Angel J. Hernández M. said:
Hi there,

You can use System.IO.DriveInfo class and query the value for the
DriveType Property

System.IO.DriveInfo drive = new System.IO.DriveInfo("e");
Console.WriteLine(drive.DriveType);

Regards,


--
Angel J. Hernández M
MCP,MCAD,MCSD,MCDBA
Microsoft MVP
http://msmvps.com/blogs/angelhernandez
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
http://www.customware.net
Technical Solutions Architect
 
Back
Top