User manual - Scripting_Guide

NAURTECH SMART CLIENTS FOR WINDOWS CE AND POCKET PC
CETerm Scripting Guide Page 34
Property Description Values
LastError Returns the last Windows error related to
the OS object.
integer
LastExecProcess Returns the process ID of the last
program started via Exec. (read only)
unsigned
integer
Registry Returns the Registry object. This object
provides access to the Windows registry.
(read only)
object
TickCount Returns the current tick count from
Windows. This provides a millisecond
resolution time source. (read only)
unsigned
integer
3.8 THE FILE OBJECT
The File object provides access to the Windows file system.
Methods
The following methods are available
Method Action
Copy Create a copy of an existing file.
CreateDirectory Create a new directory.
Delete Delete an existing file.
GetAttributes Get the attributes of an existing file.
GetOpenFileName Select a filename with a file Open dialog.
GetSaveFileName Select a filename with a file Save dialog
Move Move or rename a file.
Read Read file contents.
RemoveDirectory Remove (delete) an existing directory.
SetAttributes Set the attributes of an existing file.
Write Write contents to a new or existing file.
status = Copy( existingFile, newFile, overWrite )
Copy an existing file to a new file. If a file already exists with the new file name,
copy will fail unless overWrite is true. Returns true for success, false for failure.