home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / samples / tcpiptk / rcopy / readme < prev    next >
Text File  |  1999-05-11  |  1KB  |  34 lines

  1. RCOPY is located in \TOOLKIT\SAMPLES\TCPIPTK\SOCKET.
  2.  
  3. RCOPY makes use of the FTP API (FTPAPI.DLL) to transfer a directory and
  4. all of its subdirectories between a client and FTP server.  RCOPY does
  5. not read userid or password from the NETRC file so they must be specified
  6. when required.
  7.  
  8.      put  transfers from local host to remote host (default)
  9.      get  transfers from remote host to local host.
  10.      binary  Binary transfer mode (default).
  11.      ascii   ASCII transfer mode.
  12.  
  13. Following are the details on building and executing the RCOPY Sample:
  14.  
  15.      1.  To compile and link the sample, type:
  16.  
  17.            nmake -f vacpp.mak         (to build using the VisualAge C/C++ compiler)
  18.  
  19.      2.  Executing rcopy.exe
  20.  
  21.          a)  Command Syntax
  22.  
  23.                RCOPY put|get ascii|binary [-l<local path>] -h<host>
  24.                      -u<userid> -p<password> [-r<rem path>] [-a<account>]
  25.  
  26.          b)  Example
  27.  
  28.                rcopy put -ld:\tmp -holeg -uyozzo -pyozzops -rc:\newtmp
  29.  
  30.                Where:  d:\tmp   is a local path to transfer
  31.                        oleg     is a remote host (ftp server)
  32.                        yozzo    is a remote userid
  33.                        yozzops  is a remote password
  34.