FileManage (Manage Files)

The FileManage instruction is used to manage files from within a running datalogger program.

Syntax

FileManage ( "Device: FileName", Attribute )

Remarks

FileManage is an instruction that allows the active datalogger program to manipulate program files that are stored in the datalogger.

Parameters

"Device:FileName" (Device and File Name)

"Device:FileName" is the device and name of the program file that will be executed (RunProgram) or manipulated (FileManage). The Device on which the file is stored must be specified and the entire string must be enclosed in quotation marks. The only device choice for this datalogger is CPU.

Type: Variable string

Attribute

A numeric code to determine what should happen to the file affected by the FileManage instruction. Attribute codes are a bit field. The codes are as follows:

Bit Decimal Description
bit 0 1 Program not active
bit 1 2 Run on power up
bit 2 4 Run now
bits 1 & 2 6 Run now/Run on powerup
bit 3 8 Delete
bit 4 16 Delete all
bit 5 32 Hide

Setting a file's attributes to Hide makes it inaccessible using communications or the keyboard, but it can still be set as Run Now or Run on Power Up.

Type: Constant

The Restart instruction can be used to restart a datalogger program under program control, rather than using FileManage to Run Now/Run On Powerup.