home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-08-01 | 22.0 KB | 1,307 lines |
- #Answer
- Waits for an incoming call.
-
- Syntax:
- ANSWER
-
- Example:
- LOAD HOSTINFO "Office PC"
- ANSWER
- #Beep
- Sounds an audible alarm on the remote machine.
-
- Syntax:
- BEEP
-
- Example:
- TYPE STRING "Attention! An error has occurred."
- BEEP
- #Break
- Places a break signal on the communication line (serial devices only).
-
- Syntax:
- BREAK
-
- Example:
- BREAK
- #CD
- Changes from the current directory to the full pathname specified.
-
- Syntax:
- CD pathname
-
- Example:
- CD "\AW"
- #Clear BOL
- Clears the current row of the screen from the beginning of the row (column 1) up to but not including the current cursor position.
-
- Syntax:
- CLEAR BOL
-
- Example:
- CLEAR BOL
- #Clear BOP
- Clears the screen from row 1, column 1 (upper-left corner) up to but not including the current cursor position.
-
- Syntax:
- CLEAR BOP
-
- Example:
- CLEAR BOP
- #Clear EOL
- Clears the current row of the screen from the current cursor position to the end of the row (inclusive).
-
- Syntax:
- CLEAR EOL
-
- Example:
- CLEAR EOL
- #Clear EOP
- Clears the screen from the current cursor position to the end of the screen.
-
- Syntax:
- CLEAR EOP
-
- Example:
- CLEAR EOP
- #Clear Screen
- Clears the entire screen and moves the cursor to row 1, column 1.
-
- Syntax:
- CLEAR SCREEN
-
- Example:
- CLEAR SCREEN
- #Close
- Closes the specified file.
-
- Syntax:
- CLOSE filehandle
-
- Example:
- OPEN 1 "testfile.dat"
- WRITE LINE "Sample entry."
- CLOSE 1
- #Copy
- Copies one or more DOS files to another location.
-
- Syntax:
- COPY source destination
-
- Example:
- COPY "\docs\ref.txt" "\olddocs\ref.txt"
- #Create
- Creates and opens a new file.
-
- Syntax:
- CREATE filehandle filename [attributes]
-
- Example:
- CREATE 1 "newfile.txt" "SW"
- #Cursor Block
- Changes the cursor shape to a rectangular block.
-
- Syntax:
- CURSOR BLOCK
-
- Example:
- CURSOR BLOCK
- #Cursor Down
- Moves the cursor down the specified number of rows.
-
- Syntax:
- CURSOR DOWN [count]
-
- Example:
- INTEGER count
- count=5
- CURSOR DOWN count
- #Cursor Home
- Moves the cursor to the upper-left corner of the screen.
-
- Syntax:
- CURSOR HOME
-
- Example:
- CURSOR HOME
- #Cursor Left
- Moves the cursor left the specified number of columns.
-
- Syntax:
- CURSOR LEFT [count]
-
- Example:
- CURSOR LEFT 5
- #Cursor Line
- Changes the cursor shape to a single underscore.
-
- Syntax:
- CURSOR LINE
-
- Example:
- CURSOR LINE
- #Cursor Off
- Turns the cursor indicator off.
-
- Syntax:
- CURSOR OFF
-
- Example:
- CURSOR OFF
- #Cursor Position
- Moves the cursor to the row and column specified.
-
- Syntax:
- CURSOR POSITION row column
-
- Example:
- CURSOR POSITION 1 10
- Or,
- CURSOR POSITION * 20
- #Cursor Restore
- Restores the position and attributes of a previously saved cursor.
-
- Syntax:
- CURSOR RESTORE
-
- Example:
- CURSOR SAVE
- CURSOR POSITION 23 10
- CURSOR RESTORE
- #Cursor Right
- Moves the cursor right the specified number of columns.
-
- Syntax:
- CURSOR RIGHT [count]
-
- Example:
- CURSOR RIGHT 5
- #Cursor Save
- Saves the cursor position, shape (block or underscore) and video attributes.
-
- Syntax:
- CURSOR SAVE
-
- Example:
- CURSOR SAVE
- #Cursor Up
- Moves the cursor up the specified number of rows.
-
- Syntax:
- CURSOR UP [count]
-
- Example:
- CURSOR UP 5
- #Decrypt
- Decrypts a previously encrypted string.
-
- Syntax:
- DECRYPT source key
-
- Example:
- DECRYPT password "mickey"
- #Del
- Deletes a DOS file.
-
- Syntax:
- DEL filename
-
- Example:
- DEL "c:\temp\data.tmp"
- #Delete Char
- Deletes one or more screen characters.
-
- Syntax:
- DELETE CHAR [count]
-
- Example:
- DELETE CHAR 5
- #Delete Line
- Deletes one or more rows on the screen.
-
- Syntax:
- DELETE LINE [count]
-
- Example:
- DELETE LINE 5
- #Description
- Use this to add a brief description to your script file.
-
- Syntax:
- DESCRIPTION string
-
- Example:
- DESCRIPTION "Auto logon to Office PC"
- #1310Dial Host
- Attempts to connect with a previously configured host computer.
-
- Syntax:
- DIAL HOST host_name
-
- Example:
- DIAL HOST "Office PC"
- #1320Dial Number
- Attempts a connection by dialing the phone number specified.
-
- Syntax:
- DIAL NUMBER number
-
- Example:
- LOAD ONLSVCINFO "ACE BBS"
- DIAL NUMBER "1-500-555-5555"
- #1330Dial OnlSvc
- Dials an online service.
-
- Syntax:
- DIAL ONLSVC service_name
-
- Example:
- DIAL ONLSVC "Compuserve BBS"
- END TERMINAL
- #Dir
- Displays a list of a directory's files.
-
- Syntax:
- DIR filename
-
- Example:
- DIR "\data\*.dat"
- #Emulate
- Specifies which terminal type to emulate.
-
- Syntax:
- EMULATE [[terminal_name]]
-
- Example:
- EMULATE VT100
- #Encrypt
- Encrypts a string based on a second string containing a key.
-
- Syntax:
- ENCRYPT source key
-
- Example:
- ENCRYPT password "mickey"
- #End
- Terminates the current script and returns to location from which the script was invoked.
-
- Syntax:
- END [return_code]
-
- Example:
- END
- #End Menu
- Ends current script and passes control to the main menu.
-
- Syntax:
- END MENU
-
- Example:
- END MENU
- #End Terminal
- Ends all scripts and passes control to terminal mode.
-
- Syntax:
- END TERMINAL
-
- Example:
- END TERMINAL
- #Exit
- Ends all script processing, exits pcANYWHERE and returns control to Windows.
-
- Syntax:
- EXIT
-
- Example:
- EXIT ;end the script
- #Find First
- Searches a drive for the first instance of a specific file or type of file.
-
- Syntax:
- FIND FIRST filename [destination]
-
- Example:
- STRING match[10]
- FIND FIRST "C:*.DAT" match
- #Find Next
- Continues a search initiated with a Find First command.
-
- Syntax:
- FIND NEXT [destination]
-
- Example:
- STRING match[10]
- FIND NEXT match
- #Get Environment
- Gets the DOS environment settings based upon a keyword.
-
- Syntax:
- GET ENVIRONMENT env_keyword env_value
-
- Example:
- STRING awpath[80]
- GET ENVIRONMENT "AW" awpath
- #Get File Attr
- Retrieves file attributes for the specified file.
-
- Syntax:
- GET FILE ATTR filename [destination]
-
- Example:
- INTEGER attributes
- GET FILE ATTR "command.com" attributes
- #Get File Date
- Retrieves the date the specified file was created or last modified.
-
- Syntax:
- GET FILE DATE filename [destination]
-
- Example:
- STRING dateinfo[10]
- GET FILE DATE "command.com" dateinfo
- #Get File Size
- Retrieves the size of the specified file in bytes.
-
- Syntax:
- GET FILE SIZE filename [destination]
-
- Example:
- STRING sizeinfo[10]
- GET FILE SIZE "command.com" sizeinfo
- #Get File Time
- Retrieves the time the specified file was created or last modified.
-
- Syntax:
- GET FILE TIME filename [destination]
-
- Example:
- STRING timeinfo[10]
- GET FILE TIME "command.com" timeinfo
- #Get Free Disk
- Retrieves the amount of available disk space.
-
- Syntax:
- GET FREE DISK drive [freespace]
-
- Example:
- STRING sizefree[10]
- GET FREE DISK C sizefree
- #GoSub
- Calls a subroutine within the same script file.
-
- Syntax:
- GOSUB [[label]]
-
- Example:
- GOSUB @getInput
- #GoTo
- Branches to line in current script containing the label.
-
- Syntax:
- GOTO [[label]]
-
- Example:
- GOTO @continue
- #Hang
- Terminates a connection.
-
- Syntax:
- HANG
-
- Example:
- DIAL HOST "Office PC"
- ;script processing
- HANG
- #If...Then or If...Goto
- Conditionally processes a statement.
-
- Syntax:
- IF [[expression]] THEN [[statement]]
- Or,
- IF [[expression]] GOTO [[label]]
-
- Example:
- IF ($RESULT==1) GOTO @found
- #Index
- Locates the position of one string within another.
-
- Syntax:
- INDEX source_str search_str [position]
-
- Example:
- source="ABCDEFGHIJ"
- INDEX source "FGH" location
- #Input
- Retrieves data entered from the keyboard.
-
- Syntax:
- INPUT destination [maxlength]
-
- Example:
- STRING username[30]
- TYPE LINE "Enter your name: "
- INPUT username 30
- #Input Key
- Retrieves one character from the keyboard.
-
- Syntax:
- INPUT KEY destination
-
- Example:
- STRING yn[1]
- TYPE LINE "Enter Y or N: "
- INPUT KEY yn
- #Insert Char
- Inserts one or more spaces at the current cursor position.
-
- Syntax:
- INSERT CHAR [count]
-
- Example:
- INSERT CHAR 6
- TYPE STRING "insert"
- #Insert Line
- Inserts one or more rows of normal video spaces.
-
- Syntax:
- INSERT LINE [count]
-
- Example:
- count=3
- INSERT LINE count
- #Keyboard Flush
- Clears the keyboard buffer.
-
- Syntax:
- KEYBOARD FLUSH
-
- Example:
- TYPE LINE "Enter the name of the file to delete: "
- KEYBOARD FLUSH
- INPUT filename
- #Keyboard Hit
- Checks if the user has pressed a key.
-
- Syntax:
- KEYBOARD HIT [destination]
-
- Example:
- KEYBOARD HIT
- IF ($RESULT==0) THEN RETURN 0
- #Let
- Initiates an arithmetic expression.
-
- Syntax:
- [LET] variable=expression
-
- Example:
- STRING echo[10]
- LET echo="ABC"
- #Link
- Links to another script, terminating the current script processing.
-
- Syntax:
- LINK script_name
-
- Example:
- LINK "PASSED"
-
- Example:
- LOAD HOSTINFO "Office PC"
- DIAL NUMBER "973-9834"
- #LOAD FKEYS
- Loads a macro key file.
-
- Syntax:
- LOAD FKEYS macro_key_file
-
- Example:
- LOAD OnlSvcInfo "MCI MAIL"
- LOAD FKEYS "MCI-MAIL"
- #1620Load HostInfo
- Loads a host information entry.
-
- Syntax:
- LOAD HOSTINFO host_name
-
- Example:
- LOAD HOSTINFO "Office PC"
- DIAL NUMBER "555-5555"
- #1630Load OnlSvcInfo
- Loads parameters associated with the specified online service entry.
-
- Syntax:
- LOAD ONLSVCINFO online_svc_name
-
- Example:
- LOAD ONLSVCINFO "CompuServe"
- DIAL NUMBER "999-9999"
- #1640Load Translation
- Loads a translation table file.
-
- Syntax:
- LOAD TRANSLATION translation_file
-
- Example:
- LOAD TRANSLATION "STRIPHIG"
- SET TRANSLATION ON
- #Lower
- Converts all uppercase characters to lowercase.
-
- Syntax:
- LOWER string
-
- Example:
- STRING mixed[10]
- mixed="aBCdEFg"
- LOWER mixed
- #MD
- Creates a new directory.
-
- Syntax:
- MD dirname
-
- Example:
- MD "AWLAN"
- #MessageBox
- Displays a Windows-style message box.
-
- Syntax:
- MESSAGEBOX title text [options]
-
- Example:
- MESSAGEBOX "Record" "Do you want to record this session?" 35
- #On Cancel
- Executes the specified command if the Esc key is pressed during a Wait or Receive operation.
-
- Syntax:
- ON CANCEL [command]
-
- Example:
- SET CANCEL ON
- ON CANCEL GOTO @end
- #On Disconnect
- Executes the specified command if a connection is lost.
-
- Syntax:
- ON DISCONNECT [command]
-
- Example:
- SET DISCONNECT ON
- ON DISCONNECT GOTO @end
- #On Error
- Executes the specified command if an error occurs.
-
- Syntax:
- ON ERROR [command]
-
- Example:
- $ERROR=0
- ON ERROR GOTO @error
- #On Receive
- Executes a given command if the specified string is received.
-
- Syntax:
- ON RECEIVE string [command]
-
- Example:
- ON RECEIVE "Enter password: " GOSUB sendPW
- #On Timeout
- Executes the specified command if nothing is entered or received in the time allotted and a timeout occurs.
-
- Syntax:
- ON TIMEOUT [command]
-
- Example:
- ON TIMEOUT GOTO @timeout
- #Open
- Opens a file for reading or writing.
-
- Syntax:
- OPEN filehandle filename [attributes]
-
- Example:
- OPEN 1 "newfile.txt" "SW"
- #Print File
- Prints a file to the current printer.
-
- Syntax:
- PRINT FILE filename
-
- Example:
- STRING filename[80]
- filename="c:\aw\test.scr"
- PRINT FILE filename
- #Print Line
- Prints a string to the current printer, followed by the contents of the reserved variable $TLINEEND.
-
- Syntax:
- PRINT LINE string
-
- Example:
- PRINT LINE "Processing..."
- #Print String
- Prints a string to the default printer.
-
- Syntax:
- PRINT STRING string
-
- Example:
- PRINT STRING "Processing...^M^J"
- #Printer
- Toggles simultaneous printing on or off.
-
- Syntax:
- PRINTER ON | OFF
-
- Example:
- PRINTER ON
- TYPE LINE "This is sent to the printer."
- #RD
- Removes a directory.
-
- Syntax:
- RD dirname
-
- Example:
- RD "C:\TEMP"
- #Read Line
- Reads a line from a file.
-
- Syntax:
- READ LINE filehandle destination [length[termchar]]
-
- Example:
- OPEN 1 "datafile.txt"
- READ LINE 1 newpath 20
- #Read String
- Reads a string from a file.
-
- Syntax:
- READ STRING filehandle destination [length]
-
- Example:
- STRING data[80]
- OPEN 1 "datafile.txt"
- READ STRING 1 data 80
- #1420Receive Char
- Receives a single character from the comminucations port.
-
- Syntax:
- RECEIVE CHAR char [timeout]
-
- Example:
- STRING char[1]
- RECEIVE CHAR char
- TYPE STRING char
- #1440Receive Clear
- Clears the receive buffer.
-
- Syntax:
- RECEIVE CLEAR
-
- Example:
- STRING data[60]
- RECEIVE CLEAR
- RECEIVE STRING data
- #1430Receive File
- Receives a file using the current protocol.
-
- Syntax:
- RECEIVE FILE filename
-
- Example:
- SET PROTOCOL XMODEM
- RECEIVE FILE "c:\data\datafile.txt"
- #1450Receive Line
- Receives a string from the communications port.
-
- Syntax:
- RECEIVE LINE destination [length[termchar[timeout]]]
-
- Example:
- STRING data[80]
- RECEIVE LINE data
- #1410Receive String
- Receives a string from the communications port.
-
- Syntax:
- RECEIVE STRING destination [length] [timeout]
-
- Example:
- STRING data[50]
- RECEIVE STRING data 50 10
- #Ren
- Renames a file or directory.
-
- Syntax:
- REN old_name new_name
-
- Example:
- REN "file1.txt" "file2.txt"
- #Reset
- Resets the terminal emulation.
-
- Syntax:
- RESET
-
- Example:
- RESET
- #Return
- Ends a subroutine and passes control to the calling script.
-
- Syntax:
- RETURN [return_value]
-
- Example:
- RETURN
- #Run
- Runs a DOS or Windows application.
-
- Syntax:
- RUN command_line
-
- Example:
- RUN "c:\ndw\siw.exe"
- #Screen Restore
- Restores a previously saved screen image.
-
- Syntax:
- SCREEN RESTORE
-
- Example:
- SCREEN RESTORE
- #Screen Save
- Takes a snapshot of the screen.
-
- Syntax:
- SCREEN SAVE
-
- Example:
- SCREEN SAVE
- #Script
- Passes control to another script contained in a separate file.
-
- Syntax:
- SCRIPT script_name
-
- Example:
- SCRIPT script2
- #Seek
- Sets a file's read/write pointer.
-
- Syntax:
- SEEK filehandle offset option
-
- Example:
- OPEN 1 "newfile.txt" "SW"
- SEEK 1 0 2
- WRITE STRING "End of File."
- #1510Send Char
- Sends a single character using the currently active communications device.
-
- Syntax:
- SEND CHAR char
-
- Example:
- SEND CHAR "P"
- #1520Send Clear
- Clears the send buffer.
-
- Syntax:
- SEND CLEAR
-
- Example:
- WAIT SILENCE 5
- SEND CLEAR
- #1530Send File
- Sends a file using the current protocol.
-
- Syntax:
- SEND FILE filename
-
- Example:
- SET PROTOCOL ZMODEM
- SEND FILE "c:\data\datafile.txt"
- #1540Send Line
- Sends a string through the communications port.
-
- Syntax:
- SEND LINE string
-
- Example:
- SEND LINE "Initializing..."
- #1560Send ScanCode
- Sends a string through the communications port, translating each character to one or more IBM scan codes before it is sent.
-
- Syntax:
- SEND SCANCODE string [length]
-
- Example:
- SEND SCANCODE "DIR^M"
- #1550Send String
- Sends a string through the current communications port.
-
- Syntax:
- SEND STRING string [length]
-
- Example:
- SEND STRING "Initializing..."
- #Session Delay
- Sets the amount of time (in minutes) to delay before retrying a Session Dial.
-
- Syntax:
- SESSION DELAY [count]
-
- Example:
- SESSION DELAY 5
- #1100Session Dial
- Starts an unattended remote session.
-
- Syntax:
- SESSION DIAL host_name [time [date]]
-
- Example:
- SESSION DIAL "Office PC" 2200 930630
- #Session End
- Ends an unattended remote session.
-
- Syntax:
- SESSION END
-
- Example:
- SESSION END
- #Session ExitMode
- Sets what mode of operation the host is left in after an unattended session initiated using Session Dial.
-
- Syntax:
- SESSION EXITMODE WAIT | IDLE | ACCEPT | ORIGINAL | CANCEL
-
- Example:
- SESSION EXITMODE ORIGINAL
- #Session OnError
- Specifies what should occur when one of the SessOpr commands fails.
-
- Syntax:
- SESSION ONERROR IGNORE | NEXT | END
-
- Example:
- SESSION ONERROR END
- #Session OverWrites
- Specifies what occurs when filename parameter in a SessOpr Host Send or SessOpr Remote Send command is same as filename at destination.
-
- Syntax:
- SESSION OVERWRITES ALWAYS | NEVER | OLDER
-
- Example:
- SESSION OVERWRITES OLDER
- #Session Retry
- Sets the number of times to retry a Session Dial command.
-
- Syntax:
- SESSION RETRY [count]
-
- Example:
- SESSION RETRY 8
- #Session TimeOut
- Sets the remote's inactivity timeout for unattended sessions.
-
- Syntax:
- SESSION TIMEOUT seconds
-
- Example:
- SESSION TIMEOUT 60
- #SessOpr Host Run
- Executes a program on the host side.
-
- Syntax:
- SESSOPR HOST RUN [WAIT | NOWAIT] command_line
-
- Example:
- SESSOPR HOST RUN WAIT "edit.exe"
- #SessOpr Host Send
- Sends a file from the host computer to the remote computer.
-
- Syntax:
- SESSOPR HOST SEND filename
-
- Example:
- SESSOPR HOST SEND "c:\setup\*.nns"
- #SessOpr Remote Run
- Executes a program on the remote computer.
-
- Syntax:
- SESSOPR REMOTE RUN [WAIT | NOWAIT] command_line
-
- Example:
- SESSOPR REMOTE RUN NOWAIT "edit.exe"
- #SessOpr Remote Send
- Sends a file from the remote computer to the host computer.
-
- Syntax:
- SESSOPR REMOTE SEND filename
-
- Example:
- SESSOPR REMOTE SEND "random.??x"
- #Set Attribute
- Sets the screen attributes for subsequent characters output to the screen.
-
- Syntax:
- SET ATTRIBUTE attribute
-
- Example:
- SET ATTRIBUTE 30 ;set black foreground
- SET ATTRIBUTE 41 ;set red background
- #Set Cancel
- Toggles the state of the cancel operator.
-
- Syntax:
- SET CANCEL ON | OFF
-
- Example:
- SET CANCEL ON
- ON CANCEL GOTO @end
- #Set CharDelay
- Sets the default value of the between-character send delay.
-
- Syntax:
- SET CHARDELAY delay
-
- Example:
- SET CHARDELAY 2
- #Set Disconnect
- Sets the state of the disconnect monitoring.
-
- Syntax:
- SET DISCONNECT ON | OFF
-
- Example:
- SET DISCONNECT ON
- ON DISCONNECT GOTO @end
- #Set DTR
- Sets the state of the RS-232 Data Terminal Ready signal.
-
- Syntax:
- SET DTR ON | OFF
-
- Example:
- SET DTR OFF
- WAIT 1
- SET DTR ON
- #Set Echo
- Sets echoing of received characters on or off.
-
- Syntax:
- SET ECHO ON | OFF
-
- Example:
- SET ECHO ON
- DIAL HOST "Carol's PC"
- WAIT STRING "Enter password: "
- #Set File Attr
- Sets the file attributes of a specific file.
-
- Syntax:
- SET FILE ATTR filename new_attribute
-
- Example:
- SET FILE ATTR "c:\data\info.dat" 1
- #Set File Date
- Sets the date of a file.
-
- Syntax:
- SET FILE DATE filename new_date
-
- Example:
- SET FILE DATE "results.dat" 921110
- #Set File Size
- Sets the size of a file.
-
- Syntax:
- SET FILE SIZE filename new_size
-
- Example:
- SET FILE SIZE "results.dat" 1024
- #Set File Time
- Sets the time of a file.
-
- Syntax:
- SET FILE TIME filename new_time
-
- Example:
- SET FILE TIME "results.dat" 0900
- #Set Flow
- Sets hardware flow control.
-
- Syntax:
- SET FLOW XONXOFF | RTSCTS | BOTH | NONE
-
- Example:
- SET FLOW RTSCTS
- #Set IgnoreCase
- Sets the state of case checking when comparing strings.
-
- Syntax:
- SET IGNORECASE ON | OFF
-
- Example:
- SET IGNORECASE ON
- STRCMP "ABC" "abc"
- #Set Palette
- Sets a screen palette attribute.
-
- Syntax:
- SET PALETTE number attribute
-
- Example:
- SET PALETTE 24 0x71
- #Set Parity
- Set parity type for serial connections.
-
- Syntax:
- SET PARITY NONE | EVEN | ODD| MARK | SPACE
-
- Example:
- SET PARITY EVEN
- #Set Port
- Selects the communications port for subsequent Set Speed, Set Parity, or Set Flow commands.
-
- Syntax:
- SET PORT number
-
- Example:
- DIAL HOST "John's PC"
- SET PORT 1
- #Set Protocol
- Set the file transfer protocol to be used for subsequent Send File and Receive File commands.
-
- Syntax:
- SET PROTOCOL type
-
- Example:
- SET PROTOCOL ZMODEM
- #Set Quiet
- Toggles the display of command processing on or off.
-
- Syntax:
- SET QUIET ON | OFF
-
- Example:
- SET QUIET ON
- COPY file1 file2
- #Set Record
- Turns session recording on or off.
-
- Syntax:
- SET RECORD ON | OFF
-
- Example:
- SET RECORD ON
- #Set RTS
- Sets the state of the RS-232 Ready to Send signal.
-
- Syntax:
- SET RTS ON | OFF
-
- Example:
- SET RTS OFF
- WAIT TIME 1
- SET RTS ON
- #Set Speed
- Sets the bits-per-second speed of the communications port.
-
- Syntax:
- SET SPEED rate
-
- Example:
- SET PORT 1
- SET SPEED 19200
- #Set Timeout
- Sets the timeout value for subsequent Receive and Wait commands.
-
- Syntax:
- SET TIMEOUT seconds
-
- Example:
- SET TIMEOUT 60
- #Set Translation
- Activates or deactivates the use of a previously loaded translation table.
-
- Syntax:
- SET TRANSLATION ON | OFF
-
- Example:
- LOAD TRANSLATION "AW"
- SET TRANSLATION ON
- #StrCat
- Concatenates a string onto the end of another string.
-
- Syntax:
- STRCAT destination source
-
- Example:
- STRING string1[10]
- string1="12345"
- STRCAT string1 "ABCDE"
- #StrCmp
- Compares two strings for equality.
-
- Syntax:
- STRCMP string1 string2 [length]
-
- Example:
- STRCMP "ABC" "DEF"
- #StrLen
- Determines the length of a string.
-
- Syntax:
- STRLEN source [length]
-
- Example:
- INTEGER len1
- STRLEN "ABC" len1
- #StrSet
- Fills a string variable with a character.
-
- Syntax:
- STRSET destination length value
-
- Example:
- STRSET string1 3 "D"
- STRSET string2 1 65
- #SubStr
- Copies a portion of a string and stores it in a string variable.
-
- Syntax:
- SUBSTR source start length destination
-
- Example:
- STRING string1[50]
- SUBSTR "ABCDEF" 2 3 string1
- #Terminal
- Go into terminal emulation mode.
-
- Syntax:
- TERMINAL
-
- Example:
- TERMINAL
- #Trim
- Trims leading and trailing spaces and control codes from a string.
-
- Syntax:
- TRIM string
-
- Example:
- STRING S1[10]
- S1=" ABC "
- TRIM S1
- #Type File
- Displays the contents of a file on the screen.
-
- Syntax:
- TYPE FILE filename
-
- Example:
- TYPE FILE "results.dat"
- #Type Line
- Displays a line on the screen.
-
- Syntax:
- TYPE LINE string
-
- Example:
- TYPE LINE "Port setting modified."
- #Type String
- Displays a string on the screen.
-
- Syntax:
- TYPE [STRING] string
-
- Example:
- STRING string1
- string1 = "Echo on."
- TYPE string1
- #Upper
- Converts a string to all uppercase characters.
-
- Syntax:
- UPPER string
-
- Example:
- STRING string1[7]
- string1="AbcDEfG"
- UPPER string1
- #1210Wait Carrier
- Waits for the data carrier detect signal (CD or DCD), signifying that a connection has been established.
-
- Syntax:
- WAIT CARRIER [seconds]
-
- Example:
- WAIT CARRIER 120
- TYPE "Connection established..."
- #1220Wait Receive
- Waits for any character to be received from the communications device.
-
- Syntax:
- WAIT RECEIVE [timeout]
-
- Example:
- DIAL HOST "Office PC"
- WAIT RECEIVE 60
- #1230Wait Silence
- Waits for received communications silence for a specified number of seconds.
-
- Syntax:
- WAIT SILENCE [seconds]
-
- Example:
- WAIT SILENCE 60
- #1240Wait String
- Waits for the specified string to be received.
-
- Syntax:
- WAIT STRING string [seconds]
-
- Example:
- WAIT STRING "Enter password: " 10
- #1250Wait Time
- Waits for a specific amount of time.
-
- Syntax:
- WAIT [TIME] seconds
-
- Example:
- SET ECHO ON
- SET RECORD ON
- WAIT TIME 60
- #1260Wait Until
- Waits until a specific time and date occurs.
-
- Syntax:
- WAIT UNTIL time [date]
-
- Example:
- WAIT UNTIL 2240
- #Write Line
- Writes a string to a file and appends a carriage-return and line-feed combination ($TLINEEND).
-
- Syntax:
- WRITE LINE filehandle string
-
- Example:
- OPEN 1 "logfile"
- WRITE LINE 1 "First line"
- #Write String
- Write a string to a file without appending a carriage-return and line-feed.
-
- Syntax:
- WRITE STRING filehandle string [length]
-
- Example:
- OPEN 1 "results.dat"
- WRITE STRING 1 "First line"
- ##