المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : DriveInfo Class Help Required.



C# Programming
07-09-2009, 02:40 PM
Hi,

I have a Network drive ("Z:\") mapped to a path say something like ("\\af.sistun.com\storage\MyFolder")which I can detect using the drive info class.
Now considering the DriveInfo class object network holds the drive info about the drive "Z:",
how can I get the full network path that lies beneath "Z:\" i.e. "\\af.sistun.com\storage\MyFolder". After having explored the properties of the DriveInfo class I tried some googling but the examples revealed some ugly MFC type code. Is there some C# way to acheve this?

Thanks for reading this.

Best Regards,
Sid