home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume38 / libftp / part01 / FtpMove.c < prev    next >
C/C++ Source or Header  |  1993-07-13  |  241b  |  12 lines

  1. #include "FtpLibrary.h"
  2.  
  3. STATUS FtpMove(FTP *con,char * oldname , char * newname )
  4. {
  5.   STATUS i;
  6.  
  7.   if ((i=FtpCommand(con,"RNFR %s",oldname,200,350,EOF)) > 1 )
  8.     return FtpCommand(con,"RNTO %s",newname,200,250,EOF);
  9.   else
  10.     return i;
  11. }
  12.