How To Check for a Writeable Drive Under Windows NT (192304)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q192304 SUMMARY
One way to check if a program is able to write to a drive is to attempt to
create a temporary file on the drive. However, under Windows NT, this opens
a system error dialog box if the drive is write-protected or otherwise not
available to be written. This article demonstrates how to create and use
the CheckMediaWrite() function to check if the drive is available for
writing.
REFERENCES
(c) Microsoft Corporation 1998. All Rights Reserved. Contributions by Mike
A. Stewart, Microsoft Corporation.
Modification Type: | Minor | Last Reviewed: | 6/29/2004 |
---|
Keywords: | kbcode kbhowto KB192304 |
---|
|