put list of files in ftp server into .txt

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
jumpingjack
Posts: 2
Joined: 04 Nov 2011 17:26

put list of files in ftp server into .txt

#1 Post by jumpingjack » 04 Nov 2011 17:36

I found some code to automatically download only new files from an ftp server.

It does this by making two text files, one of the local files, and one of the ftp servers files. It then compares these files to see what needs to be downloaded.

I am getting stuck on the ftp files list. here's some of the code:

> FTP.do ECHO o site
>> FTP.do ECHO username
>> FTP.do ECHO password
>> FTP.do ECHO ls FTPList.txt
>> FTP.do ECHO bye

I'm stuck on FTP.do ECHO ls FTPList.txt
I get the error "out of memory at globbing FTPList.txt (probable means permmision is denied)"

Anyone have any ideas?

Post Reply