AppCtrlScript

MAY Computer

Help

GETFILEREADONLY

Applies to  

AppCtrlScript (Module: wmACScr1.dll)

Group  

File

See also  

SETFILEREADONLY,FILECOPY, FILEMOVE, FILEDELETE

Returns whether a specified file or folder is read-only or not. The specified script variable will contain 1 if the read-only flag is set and 0 if not.

Syntax

GETFILEREADONLY <VariableName>, <SourceFileName>

Part

Description

<VariableName> Script variable name to store the result in.
<SourceFileName> Complete filename of the file for which to change readonly flag.

 

Sample

  GETFILEREADONLY RO, "F:\Post\Test.doc"
  ;Returns 1 if file or folder is read only otherwise 0
  MSGBOX "%SCR.RO%"