Connecting to ftp site from X3 Code

Is there a way to connect to an ftp site, and download files to the local X3 server, from within native X3 code?  Has anybody every done this?

Parents Reply Children
  • 0 in reply to Israel Braunfeld
    $API_W12

    Local Char ORDRE(255)
    Local Integer STAT
    Local Char LFILES(100)(1..)

    ORDRE = "C:\w12CTRconnect.bat > C:\CTRlog.txt 2>&1"
    Call SYSTEME2( adxmac( 0),ORDRE,"",STAT,LFILES) From ORDSYS

    Return

    *******
    w12CTRconnect.bat file
    ftp -i -s:C:\w12CTR.txt

    ***********
    w12CTR.txt file

    open <ftp server ip or URL>
    <user name>
    <password>
    cd /Items
    lcd C:\items
    mget *.txt
    disconnect
    quit