PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
fDirAttrib (Function)
In French: fRepDroit
fDirAttrib is kept for backward compatibility.
In this version, the management of the directory attributes has been optimized. You can now find out and modify the attributes of a directory. To benefit from these new features, use fDirAttribute.
The documentation about fDirAttrib is as follows.
 
Purpose
Find out the attributes of a directory.
Syntax
<Result>=fDirAttrib(<Path>)
  • <Result> is an integer containing the access rights for the directory.
  • <Path> is a character string containing the name of the directory.
    This character string can be in ANSI or Unicode format.
Details
This function is used to find out the user access rights for a specified directory. <Result> can take the value:
  • 0 if the directory is invalid
  • 1 if the directory is read-only
  • 2 if the directory is read-write
Notes
  • This function applies to all the types of disks: hard drives on a network or not, floppy disk, CD-ROM, ...
  • Caution: the access rights may be different from one directory to another directory on the same drive.
  • <Path> must have the following format: "C:\DOC\HLP". The drive letter must be specified in the path, otherwise the result will be based on the A volume.
  • This syntax cannot be used with a path of network drive. You must specify the path of the volume associated with this network drive.
Example
// Test of the floppy drive
Info(fDirAttrib("A:"))
// Test of a directory
Info(fDirAttrib("C:\Doc\Function")
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment