User manual - Scripting_Guide

NAURTECH SMART CLIENTS FOR WINDOWS CE AND POCKET PC
CETerm Scripting Guide Page 35
Use the File properties LastError or LastErrorMessge to get additional error
information.
status = CreateDirectory( newDirectory )
Create a new directory. Returns true for success, false for failure.
Use the File properties LastError or LastErrorMessge to get additional error
information.
status = Delete( filename )
Delete an existing file. Returns true for success, false for failure.
Use the File properties LastError or LastErrorMessge to get additional error
information.
attributes = GetAttributes( filename )
Return the attributes of the file. Use the File properties LastError or
LastErrorMessge to get additional error information. See Appendix 4 for attribute
definitions.
filename = GetOpenFileName( title, filter )
Return the name of a file specified by the user in an Open file dialog. The title of
the dialog should contain descriptive information for the user. For example,
“Please select a datafile.” The filter is list of filter pairs. Each pair represents the
description of a filter and the file selector wildcards. For a JavaScript file it may
look like this: "JScript File (*.js)\x00*.js\x00\x00". Each element of the
pair is followed by "\x00" as a separator character. The last pair has an
additional trailing
"\x00". Here is a multiple filter example:
"JScript File (*.js)\x00*.js\x00All Files(*.*)\x00*.*\x00\x00"
filename = GetSaveFileName( title, filter )
Returns the name of a file specified by the user in a Save file dialog. The title of
the dialog should contain descriptive information for the user. For example,
“Save file as:”. The filter is list of filter pairs. Each pair represents the description
of a filter and the file selector wildcards. For a JavaScript file it may look like this:
"JScript File (*.js)\x00*.js\x00\x00". Each element of the pair is followed
by "\x00" as a separator character. The last pair has an additional trailing
"\x00". Here is a multiple filter example:
"JScript File (*.js)\x00*.js\x00All Files(*.*)\x00*.*\x00\x00"