Visara Master Console Center Scripting Guide Uživatelský manuál Strana 105

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 262
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 104
Chapter 5 Script Commands
Scripting Guide 105
FEXISTS
Syntax:
FEXISTS( $FileName) ==> %Success
Description:
Determines if a file exists.
Action:
The file is checked to ensure it exists in the current or specified
directory.
Parameters:
$FileName. String expression. The case sensitive name of the file to
verify if it exists. Include any necessary file path.
Returns:
Numeric value, as follows.
Value Meaning
0 False, file was not found
1 True, file exists
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. FEXISTS can be used to verify any file on the MCC unit.
4. Using NFS, it is possible to verify virtually any file on any server or
mainframe from the MCC unit.
Example:
%Success := FEXISTS( “SYS5”)
%Success := FEXISTS( “user-data/config/” + $OSName)
See Also:
FCLOSE, FDELETE, FOPEN, FREAD, FRENAME, FREWIND,
FWRITE
Zobrazit stránku 104
1 2 ... 100 101 102 103 104 105 106 107 108 109 110 ... 261 262

Komentáře k této Příručce

Žádné komentáře