IMPORT AND EXPORT FTP FILE

anil123
anil123 Member Posts: 47
DEAR ALL


HOW CAN I IMPORT AND EXPORT THE TXT FILES USING BATCH JOB.
Anil

Comments

  • Savatage
    Savatage Member Posts: 7,142
    Search forum for " FTP" first.
    See if those posts answer you question.
    If not then be more specific about your issue.
  • jspopp
    jspopp Member Posts: 54
    1. create a file called 'upload.cmd' file and in it type something like:
    ftp -i -s:ftp.bat x.x.x.x

    note: if you go to a dos prompt and type in ftp /?, you will discover all the options for ftp. x.x.x.x is the FTP's IP address

    2. create a file called ftp.bat. This will be the file you use to login and apply commands. On separate lines, type in this info
    login
    password
    mput/mget file (this could be any sort of commands you need to accomplish your task)
    quit

    Then, in your NAV code, call the upload.cmd file using the SHELL command.

    Also, take a look at 'Form Data Types' in the Help section in NAV and it'll give you a whole bunch of ways to build these files for you