Hi,

I am trying to create a test job to send an ftp file.  I have
implemented the changes to the WinInet classes specified in the
message string, but my job does not work completely.  It will connect,
get and set directories, it will close the connection, but it cannot
put/get files.  I have done this through the command prompt and it
works so it isn't an access issue.

Here is the job:

static void ftptest(Args _args)
{
    WinInet     iNet = new WinInet();
    int         handle;
    int         ret;
    str sdir;
    ;
    handle = inet.internetConnect('keyweb','AxDevTeam','bR549Key');
    sdir = inet.ftpGetCurrentDirectory(handle);
    sdir = strreplace(sdir,'/','//');
    ret = inet.ftpGetFile(handle,sdir + '//testge.txt1','d:\t1.txt');
    ret = inet.ftpSetCurrentDirectory(handle, sdir + '//test');
    ret = inet.ftpPutFile(handle,'d:\test1.csv',sdir + '//test1.csv');

    ret = inet.internetCloseHandle(handle);
    info('done');
}

Thanks for your help,

Rich

--- In [email protected], Byteway <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I think you first have to implement the InternetGetLastResponseInfo
method.
> Then only when there is a respected response (boolean),  the last
> paramater (the handle to the executed command) can be used. And that
is
> where the method InternetReadFile comes in.
>
> | |
>









YAHOO! GROUPS LINKS




Reply via email to