Avaya Writing Technician Interface Scripts Manuale Utente Pagina 45

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 116
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 44
Command Reference
308660-14.00 Rev 00
2-15
Example 5
For example, the following script tests whether variable a has been defined:
setenv a 5
if $?a=1 then; \
echo “Defined”
To test whether a file is present, use the if command with the following syntax:
if -file
<filename>
=1
Example 6
For example, the following script tests whether the install.bat file is present:
if -file install.bat=1 then;\
echo “File present”
To test whether a directory is present, use the if command with the following
syntax:
if -dir
<directory_name>
=1
Example 7
For example, the following script tests whether volume 2 is present:
if -dir 2:=1 then;\
echo “Volume 2 present”
Vedere la pagina 44
1 2 ... 40 41 42 43 44 45 46 47 48 49 50 ... 115 116

Commenti su questo manuale

Nessun commento