ChangeProtection()

  ChangeProtection

Description

ChangeProtection() is used to change the protection mode of a file.

Call Signature

void ChangeProtection( string filename, string protection )

Return Value

void

This has no return value.

Arguments

string filename :

The name of the file of which the protection mode is to be changed.

string protection :

String specifying the new protection mode. This must be either "RDONLY" for readonly, "RW" for read-write, or "EXE" for executable.

Remarks

An EASI error will occur if the operation fails.

See also

General file functions

© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.