RCOPY is located in \TOOLKIT\SAMPLES\TCPIPTK\RCOPY). It 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 the user ID or password from the NETRC file, so they must be specified when required.
The following explains how to build and run the RCOPY samples.
nmake -f vacpp.mak (to build using the VisualAge C/C++ compiler)
RCOPY put|get ascii|binary [-l<local path>] -h<host> -u<userid> -p<password> [-r<rem path>] [-a<account>]
where:
put
rcopy put -ld:\tmp -holeg -uyozzo -pyozzops -rc:\newtmp
where:
d:\tmp