Findfirst - Crestron SIMPL+ Reference Manual

Language reference guide
Hide thumbs Also See for SIMPL+:
Table of Contents

Advertisement

Crestron SIMPL+
Language Reference Guide - DOC. 5797G
®

FindFirst

Name:
FindFirst
Syntax:
SIGNED_INTEGER FindFirst(STRING filespec, FILE_INFO
info)
Description:
This command searches a directory for file(s) matching the given file specification.
Always followed with a FindClose, refer to
Requires StartFileOperations(), refer to
Parameters:
FILESPEC specifies the filename to look for. It can be a full path name or a relative
path name with wildcards ( the '*' character), refer to
INFO –
FILE_INFO
file:
File Attribute Bit Flags
KEYWORD
ATTRIBUTE
ARDONLY
File is marked read only
AHIDDEN
File is hidden
ASYSTEM
File is marked as a system file
AVOLUME
File is a volume label
ADIRENT
File is a directory
ARCHIVE
File is marked as archived
Return Value:
Returns 0 if a file is found matching the specification and –1 if an error occurred.
page
page
183.
structure containing the information about a found
: - May be checked with bitwise and character.
Software
148.
page
14.
SIMPL+
®
149

Advertisement

Table of Contents
loading

Table of Contents