beautypg.com

Fdelete, Fdelete, fexists, fopen – Visara Master Console Center Scripting Guide User Manual

Page 104

background image

Chapter 5 Script Commands

Scripting Guide

104

FDELETE

Syntax:

FDELETE( $FileName) ==> %Success

Description:

Permanently deletes a file.

Action:

$FileName is permanently deleted from the system.

Parameters:

$FileName. String expression. The case sensitive name of the file to

delete. Include any necessary file path.

Returns:

Numeric value, as follows.
Value

Meaning

0

False, file deletion was not successful

1

True, file deletion was successful

Notes:

1. Refer to Manifest Constants on page 42 for information on the

constants reference list.

2. If FileName does not exist, FALSE is returned.
3. If FileName exists but could not be deleted, FALSE is returned.
4. FDELETE can be used to delete any file on the MCC unit.
5. Using NFS, it is possible to delete virtually any file on any server

or mainframe from the MCC unit.

Example:

%Success := FDELETE( “SYS5”)

%Success := FDELETE( “user-data/SYS5”)

See Also:

FCLOSE, FEXISTS, FOPEN, FREAD, FRENAME, FREWIND,
FWRITE