Results 1 to 5 of 5
  1. #1
    redbull's Avatar
    redbull is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Mar 2012
    Location
    Missouri
    Posts
    480

    FTP download... then FTP delete

    I have been googgling for an FTP solution.

    I want to automatically connect to a set server, with static usernames and passwords and download the a file name "tempreport.txt"



    After the download, I want the program to delete the file from the FTP server.

    I am finding bits and pieces of things on the internet, but nothing that handles this type of action directly... If anyone has a module, or a link that can point me in the right direction it is appreciated.
    Last edited by redbull; 07-17-2012 at 02:46 PM.

  2. #2
    redbull's Avatar
    redbull is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Mar 2012
    Location
    Missouri
    Posts
    480
    Alright, since posting I have found a way to do this thru command prompt, if I can get those commands working in vba I should be good.

  3. #3
    redbull's Avatar
    redbull is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Mar 2012
    Location
    Missouri
    Posts
    480
    Well I am still lost, Been looking all morning. I can manually connect and do what I need to do in cmd line... but I am unable to get this working... ugh..

  4. #4
    Rawb is offline Expert
    Windows XP Access 2000
    Join Date
    Dec 2009
    Location
    Somewhere
    Posts
    875
    One possible solution would be to:
    1. Create a BATCH (or WSH) Script that gets the file via FTP and then renames it to something else when finished.
    2. Call that Script from VBA with a check immediately afterwards to see if the renamed file exists.
    3. If the renamed file exists, then perform your actions.
    4. If the renamed file doesn't exist, then either wait a while and check again or return an error.
    Last edited by Rawb; 07-17-2012 at 01:01 PM. Reason: Grammar FTW!

  5. #5
    redbull's Avatar
    redbull is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Mar 2012
    Location
    Missouri
    Posts
    480
    Yea I was finally able to resolve it... requires a batch file, then a txt file holding ftp server info... Implementing to code now

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Download Excel sheets into contacts
    By magster01 in forum Access
    Replies: 1
    Last Post: 08-19-2011, 09:50 AM
  2. .mdb Download Problem
    By DBCox in forum Access
    Replies: 5
    Last Post: 07-25-2011, 11:31 AM
  3. Training database for Download
    By macdca in forum Database Design
    Replies: 1
    Last Post: 06-18-2011, 10:28 AM
  4. ODBC Client download
    By indira in forum Import/Export Data
    Replies: 1
    Last Post: 12-25-2010, 03:16 AM
  5. Replies: 1
    Last Post: 12-06-2010, 08:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums