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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top