EasyManua.ls Logo

Ericsson MC 218 - Page 91

Ericsson MC 218
113 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
91
You can list specific files, say script files, by limiting the string expression.
E.g.
DIR (“C:\Documents\*.scr”)
which will only list files with the filename extension ‘.scr’.
D
O see WHILE
DOWNLOAD DOWNLOAD <filename>,<string>
Prepares the MC 218 to receive a file from the remote machine, using a
protocol indicated by the second string expression. E.g.
DOWNLOAD “D:\Documents\letter1” , “XModem”
The protocol is indicated by one of the following labels: ASCII; XModem;
YModem (batch). Both XModem and ASCII protocols require you to
specify a filename in the first string expression, as above. When receiving
files using the YModem (batch) protocol, the filename is sent by the other
machine, so a “blank text” string ought to be entered. E.g.
DOWNLOAD “”,“Ymodem (batch)”
D
RAIN DRAIN
Empties the “receive buffer” (the part of the memory where received
characters are stored before being displayed). Any received characters which
have yet to be processed will be discarded.
EOF see O
PEN
EXISTS EXISTS <filename>
Returns a value of 1 or 0, depending on whether or not a file exists. If the
file exists, the script carries out the commands specified by an IF
command. E.g.
IF EXISTS “C:\Files\Log”=1 THEN
GOTO gotlog
ENDIF
GOTO nolog
checks to see if there is a file called ‘Log’ in the ‘Files’ folder. If there is (i.e.
if EXISTS returns a value of 1), the script jumps to thegotlog label. If
there is no such file (and EXISTS returns 0), the script jumps to the
nolog’ label. EXISTS can also be used to assign a value to a variable. E.g.
SEND EXISTS “C:\Files\Log
will send 0 or 1 depending on whether or not the file exists, while
gotlogfile$=EXISTS “C:\Files\Log
sets the value of the string according to the value returned by EXISTS.
E
XIT EXIT
Stops running the script and returns to the Terminal emulation screen. E.g.

Other manuals for Ericsson MC 218