Hitachi

JP1 Version 11 JP1/Script Description and Reference (For Windows Systems)


8.9.7 IsWriteableDir (check whether a folder is writeable)

Purpose

Checks whether a folder is writeable and returns True or False.

Syntax
IsWriteableDir (DirName)
Argument
DirName

Specify the folder name as a string or as a variable that stores this value.

Description

The IsWriteableDir command checks whether the specified folder is writeable. The command returns True if the folder is writeable, or False if not.

False is always returned if you specify a non-existent folder.

Note

Take care when specifying the folder, or a folder in the folder set in the following environment variables: ProgramFiles (normally the Program Files folder on the system drive) and WinDir (normally the Windows folder on the system drive). For details, see 1.8.2 Command behavior.

Example
' Check whether the "BKUP" folder is writeable.
outDir = _SCF_+"BKUP\"
writeFlag = "NG"
If IsWriteableDir (OutDir) = True Then
  writeFlag ="OK"
End
JP1/Script version

Supported from JP1/Script 01-00.