Directories of removable disk Using DiretoryInfo
Hi Programmers, can you help me on how can i get the directories of a certain flash drive using DirectoryInfo in C#?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Dec 23, 2013, 6:42 AM
You can guard against this error by changing the code to the following:
Akemi ChouPosted Dec 22, 2013, 8:26 AM
VulpesPosted Dec 20, 2013, 7:31 PM
Akemi ChouPosted Dec 19, 2013, 9:03 PM
VulpesPosted Dec 19, 2013, 2:09 PM
Otherwise, the only thing I can think of is to give it a unique Volume Label and then identify it from that:
If the flash drive doesn't have a unique volume label already, then you can give it one with the LABEL command:
http://en.wikipedia.org/wiki/Label_(command)
Akemi ChouPosted Dec 19, 2013, 12:38 PM
The question is; how can I make it default or let's just say the system could easily identify without mapping it manually with the use of DirectoryInfo? thanks for your reply :)
VulpesPosted Dec 19, 2013, 10:35 AM