Download AccuTerm 7 User Manual
Transcript
Features for MultiValue Users 295 4.1.12.6 DOSSVC The DOSSVC subroutine performs three functions (each is optional). First, a "file" is sent from the host to the PC; next a Windows or DOS command is executed (this may be a BATCH file); finally, a file is retrieved from the PC. The data to be sent, PC file name, and Windows / DOS command are passed as arguments to the subroutine, and the received file is passed back to the calling program. The calling syntax is: CALL DOSSVC(CMD,SEND.PATH,SEND.FILE,SEND.DATA, GET.PATH,GET.FILE,GET.DATA) Input arguments: CMD SEND.PATH SEND.FILE SEND.DATA GET.PATH GET.FILE DOS or Windows command to execute after sending the data to the PC. This argument may be null if no command should be executed. Target directory on the PC where SEND.DATA is saved before executing CMD. Target file name on the PC. If this argument is null, no data is sent to the PC. Contents are stored in the target file on the PC before executing CMD. Source directory on the PC where GET.DATA is retrieved from. Source file name on the PC where GET.DATA is retrieved from. If this argument is null, no data is retrieved from the PC after executing CMD. Output arguments: GET.DATA Contents of GET.FILE retrieved from the PC after executing CMD. Note: the SEND.DATA and GET.DATA arguments must be different variables! 4.1.12.7 FTS The FTS subroutine performs a simple "file" transfer to or from the PC. The "file" (a dynamic array) to be sent to (or received from) is passed as an argument to the subroutine. The calling syntax is: CALL FTS(MODE,PATH,FILE,ITEM,STAT) Input arguments: MODE options separated by commas (first letter is sufficient): SEND - send file to PC RECEIVE - retrieve file from PC KERMIT - use the Kermit file transfer protocol (recommended) ASCII - use the ASCII file transfer protocol OVERLAY - overwrites existing files NO OVERLAY - skips existing files Copyright 2010-2013 Schellenbach & Assoc., Inc.