home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
viscobv6.zip
/
vac22os2
/
ibmcobol
/
samples
/
toolkit
/
tcpiptk
/
rcopy
/
readme
< prev
next >
Wrap
Text File
|
1996-11-19
|
2KB
|
37 lines
RCOPY is located in \TOOLKIT\SAMPLES\TCPIPTK\SOCKET.
RCOPY makes use of the FTP API (FTPAPI.DLL) to transfer a directory and
all of its subdirectories between a client and FTP server. RCOPY does
not read userid or password from the NETRC file so they must be specified
when required.
put transfers from local host to remote host (default)
get transfers from remote host to local host.
binary Binary transfer mode (default).
ascii ASCII transfer mode.
Following are the details on building and executing the RCOPY Sample:
1. To compile and link the sample, type:
nmake -f vacpp.mak (to build using the VisualAge C/C++ compiler)
make -f borland.mak (to build using the Borland C++ compiler)
wmake -f watcom.mak (to build using the Watcom C/C++ compiler)
nmake -f metaware.mak (to build using the Metaware High C/C++ compiler)
2. Executing rcopy.exe
a) Command Syntax
RCOPY put|get ascii|binary [-l<local path>] -h<host>
-u<userid> -p<password> [-r<rem path>] [-a<account>]
b) Example
rcopy put -ld:\tmp -holeg -uyozzo -pyozzops -rc:\newtmp
Where: d:\tmp is a local path to transfer
oleg is a remote host (ftp server)
yozzo is a remote userid
yozzops is a remote password