FTP Batch file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • raviva
    New Member
    • Jan 2008
    • 19

    FTP Batch file

    Hi,

    I have a question regarding the batch file. When that batch file is run, its ftps a csv file from windows to oracle end(ours is on unix platform). This is quite simple right?? But there are somethings I am unable understand in that file: Please have a look at the batch file below:

    @echo off
    ftp -n -s:.\FTP_CMDS\CT DI.FTP 135.65.246.214 > logs\CTDI_FTP.l og

    In the above batch file, I am confused with the 'FTP_CMDS' folder. Inside that folder it has a file named 'CTDI.FTP'. What is this file with the extension '.FTP'. When I tried to look into that file its not opening in a notepad. I thgt that it will run if I double click it. So, I left it as it is. Please someone help me understand this.

    Thanks,
    Ravi
  • amitpatel66
    Recognized Expert Top Contributor
    • Mar 2007
    • 2358

    #2
    I think this file CTDI.FTP contains normal FTP code like OPEN <ip_address>, LCD <directory>, cd <directory> etc....since I can see the parameter passed to this file is the ip-address to which it will connect and eitehr FTP or get the file from that IP address.

    Comment

    Working...