Results 1 to 10 of 10

Thread: Ftp get

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Ftp get

    Hi,

    I didn't see any FTP forum so I hope it is ok to post to the INET forum (closest one in type).

    I was modifying your FTP sample.
    I was able to connect to my IP address and login.
    Able to change to my local directory, C:\
    Able to change my server/remote directory, /tmp

    Then normal in DOS, I would use GET filename newfilename (ex: GET TBT TBT.txt) and it would get the file and put it in my C: drive.

    So I copied the sample and used ftpresult = FTP_GetFile(TBT, "Async")

    But I didn't see any TBT file in my C: drive. Do I do something wrong?

    Second question: is there a way to rename the "get" file to add the .txt extension?

    Last question: I was thinking of having the user input their id and password. Right now it is hardcoded in the script. Is there a way to suppress the display of the password when they type it in via the CONSOLE module?

    Thanks. This is probably basic (no pun intended ) to you guys.

    PS: I was displaying the FTP GETFILE and it is 0. And displaying for the FTP FINISHED and it was 910.
    Last edited by TheOne; 09-04-2011 at 01:21.

Members who have read this thread: 2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •