Hi,
I am not a DOS programmer, but I am in a need of a batch file to do some work for me.
I have tried to go through all the post related to FTP in this forum, but due to lack of knowledge, I'm not able to come out with the script or batch that I need.
My needs are:
1. I need to have the script to create a directory with the name D:\images\<IP ADDRESS>\log (if it is not yet created)
2. The program will download all log files into this directory
3. It will create a list in D:\tmp\<IP Address>.ftp for the downloaded file
4. The program will refer to this list in (3) evertime it start downloading, so it wont download the same file again, eventhough the physical file has been removed from the original directory
5. <IP ADDRESS> is the IP Address of the host where it is connecting to e.g. 192.168.1.1
6. The local directory will be the one that is created in (1)
7. The remote directory is located on <IP ADDRESS> in folder /var/log/userlog
8. And I need the activity to be logged for:
8.1 Success or Fail activity
8.2 How many files downloaded
8.3 And this log file, should be placed in D:\tmp\<IP Address>-ftp.log
I will use this file for 1 particular remote host.
Of which, later on I will find a way to create another batch to call and run this batch for many differrent hosts.
Please help, Many Thanks.
FTP batch to download new files with logging
Moderator: DosItHelp
Re: FTP batch to download new files with logging
If you don't get a reply here then try the Usenet newsgroup alt.msdos.batch.nt and tell them the budget for creating this for you.
It will take a fair amount of testing, with your FTP server, as not all FTP servers return the information in the same format - so you will have to provide access to your FTP server.
It will take a fair amount of testing, with your FTP server, as not all FTP servers return the information in the same format - so you will have to provide access to your FTP server.