I don't have a code sample handy right here but yes, if your looking to read
or write to a file on removable drive, that shouldn't be a problem at all.
I read/write to files all the time.
Look into the FileSystemInfo, FileInfo, DirectoryInfo classes.
Also and more specifically,ta ke a look at the DriveInfo class and the
DriveInfo.Drive Type enumeration.
You can enumerate drives on a system with something along the lines of the
following:
Dim drives() As DriveInfo = DriveInfo.GetDr ives()
Dim drive As DriveInfo
For Each drive In drives
Console.WriteLi ne("Drive: {0}", drive.Name)
Console.WriteLi ne("Type: {0}", drive.DriveType )
Next
This should give you a start.
Tony Wissler
te*******@gmail .com_NoSpamMan!
"Bill Nguyen" <bi************ *****@jaco.comw rote in message
news:%2******** ********@TK2MSF TNGP06.phx.gbl. ..
One of my apps (running in a terminal server session) needs to access a
local USB drive /fash card.
Is there a way to access local drives programmaticall y?
Thanks
Bill