[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FTPAPI: using DIR to get a directory-list into a file
- From: Jan Grove Vejlstrup <jgv@xxxxxxxx>
 
- To: HTTPAPI and FTPAPI Projects <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
 
- Subject: FTPAPI: using DIR to get a directory-list into a file
 
- Date: Tue, 22 Apr 2014 15:35:14 +0200
 
   Hello
   I am using FTPAPI to get informations of a remote directory.
   I use the command DIR. If I open an interactive session, it works
   allright. The file DIROUTPUT is created in the current library.
   I've written a little testprogram test305 using FTPAPI. If I run it I
   find the following in the joblog, but no file DIROUTPUT in the current
   library. Here is the joblog:
   4 > call
   test305
        1-: FTPAPI version 3.0beta1 released on
   2010-02-21
        99-: Connecting to host xxxxxxxxxx.yy at address xxx.xxx.xxx.xxx
   using port
   21.
        0: 220 Microsoft FTP
   Service
        0: > USER xxxxxxxxxxxx
        0: 331 Password required for
   xxxxxxxxxxxxxxx.
        0: > PASS
   **********
        0: 230 User xxxxxxxxxxxx logged
   in.
        0: > DIR /Depot
   (DISK
        0: 500 'DIR /Depot (DISK': command not
   understood
        0: >
   QUIT
        0: 221
   The little program comes here:
        /free
         *inlr = *on;
         ftp_logging(0: *on);
         ftp = ftp_conn(FTPADR: FTPUSER: FTPPWD);
         if ftp < 0;
           msg = FTP_errorMsg(0);
           dsply msg;
           return;
         endif;
         command = 'DIR /Depot (DISK';
         returnValue = ftp_quote(ftp: command);
         ftp_quit(ftp);
        return;
    /end-free
   Why doesn't it work, when I use the program?
   Best regards
   Jan

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------