TACCESS
CometAnywhere File Transfer Utility
Overview
The TACCESS utility program provides an easy way user to transfer files between a Comet host system and a CometAnywhere workstation using TCP/IP. The CometAnywhere user runs this program, which is displayed as #24 on the Comet Utility Programs menu. TACCESS operates either in command mode or manual mode, and can transfer files from the host system to the remote workstation or vice versa.
Command Mode
To use TACCESS in command mode, you must create a command file (via the Comet Editor) that contains the necessary TACCESS commands and the filename(s) to be transferred. These commands are listed below. The first prompt displayed by TACCESS is:
Command File:
Enter the name of the command file, or press the Enter key to advance to manual mode.
Manual Mode
The following prompt indicates that you are using manual mode:
Manual Entry Mode
Command:
At this prompt, enter a single TACCESS command and press the Enter key. The prompt is redisplayed, allowing you to enter another command. When a sufficient number of TACCESS commands have been entered (specifying the names and locations of the files to be transferred), TACCESS will complete the transfer operation.
Press ? at the “Command” prompt to see a list of TACCESS commands.
TACCESS
Commands
The valid TACCESS commands are: RECEIVE, SEND, HOST PATH, and REMOTE PATH.
· RECEIVE transfers files from the Comet host system to the CometAnywhere remote workstation.
· SEND transfers files from the CometAnywhere remote workstation to the Comet host system
· REMOTE PATH defines the CometAnywhere workstation’s DOS path (where files will be transferred to/from).
· HOST PATH defines the Comet host system’s DOS path (where files will be transferred to/from).
In addition to these commands, a TACCESS command file contains the name of the file(s) to be transferred. There are two ways to specify a file name. If you list a single filename, that name will be copied without renaming the file (i.e., it will be the same name on the host and remote system). However, if you want to rename the file, use the following format:
filename1 , filename2
where filename1 is the original filename, and filename2 is the name of the file on the system to which it is copied.
TACCESS commands may include a comment character (;) and a comment following the command itself.
Example 1:
This command file sends data from a Comet host system to a CometAnywhere workstation. Files are copied from d:\comet\tmp (on the host system) to c:\comet\tmp (on the remote system). All named files are copied without being renamed.
RECEIVE ;Set HOST to REMOTE
HOST
PATH D:\COMET\TMP ;Set Host Pc's DOS
Path
REMOTE
PATH C:\COMET\TMP ;Set Remote Pc's DOS
Path
FILE1
;Send file without
renaming
FILE1.I00 ;Send file without renaming
FILE2 ;Send file without
renaming
FILE2.I00 ;Send file without renaming
FILE3.TXT ;Send file without renaming
FILE4.JPG ;Send file without renaming
FILE5.EXE ;Send file without renaming
FILE6.OBJ ;Send file without renaming
Example 2:
This command file sends data from a Comet host to a CometAnywhere workstation. Files are copied from d:\comet (on the host system) to c:\comet (on the remote system). The cosw.exe file is copied without renaming, while the test1 file on the host is renamed to test2 on the remote system.
RECEIVE ;Set HOST to REMOTE
REMOTE
PATH C:\COMET ;Set Remote Pc's DOS
Path
HOST
PATH D:\COMET ;Set Host Pc's DOS
Path
COSW.EXE ;Send file without renaming
TEST1 , TEST2 ;Send file and rename to TEST2
Example 3:
This command file sends data in both directions. In the first part of the command file, files are copied from d:\comet (on the host system) to c:\comet (on the remote system). In the second part of the command file, files are copied from c:\comet\tmp (on the remote system) to d:\comet\tmp (on the host system).
RECEIVE ;Set HOST to REMOTE
REMOTE
PATH C:\COMET ;Set Remote Pc's DOS
Path
HOST
PATH D:\COMET ;Set Host Pc's DOS
Path
COSW.EXE ;Send file without renaming
TEST1
, TEST2 ;Send file and
rename to TEST2
SEND ;Set REMOTE to HOST
REMOTE
PATH C:\COMET\TMP ;Set Remote PC’s DOS
path
HOST
PATH D:\COMET\TMP ;Set Host PC’s DOS
path
FILE1.TXT ;Send file
FILE2.TXT ;Send file
Launching
TACCESS from Another Program
You can launch TACCESS from another program by passing the TACCESS command filename in COMMON and then running or entering TACCESS, as follows:
LENGTH
252 & COMMON SYSCOM$
.
.
.
SYSCOM$="TRANSFER,DSK" ! command file and directory
RUN
"TACCESS" ! treat
TACCESS as an overlay
LENGTH
252 & COMMON SYSCOM$
.
.
.
SYSCOM$="TRANSFER,DSK" ! command file and directory
ENTER
"TACCESS" ! treat
TACCESS as a subprogram
Note: The TACCESS command file can be a text file or CED file.