Checking if can write to a drive

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dennis

    #1

    Checking if can write to a drive

    Trying to check if a drive is writable. Can do it by trying to create a directory using DirectoryInfo class then checking err.number but looking for a more elegant way. Tried DirectoryInfo.A ttributes.ReadO nly but always get a FileAttributes. ReadOnly result. Any help would be appreciated.
    --
    Dennis in Houston
Working...