Maptitude GISDK Help

SetFileAttributes()

Summary

Changes the attributes of a file or a directory.

 

Changes

Added to Version 5.0.

 

Syntax

SetFileAttributes(string path, array options)

 

Argument Contents
path The full or partial path of the file or directory

 

Option Type Contents
Read Only Boolean Whether to mark the file as read only ("True") or writeable ("False")
Hidden Boolean Whether to mark the file as hidden ("True") or not ("False")
System Boolean Whether to mark the file as a system file ("True") or not ("False")

 

Notes

Example

SetFileAttributes("c:\\temp\\myfile.txt", {{"Read Only", "True"}})

 

Error Codes

Error Type Meaning
NotFound The file was not found

 

See Also

Function Summary
GetDirectoryInfo() Gets a listing of the contents of a directory
GetFileInfo() Gets information about a file
SearchFilePath() Searches for the path for a filename

 

 

©2025 Caliper Corporation www.caliper.com