combination FTP + text file

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
ccir
Posts: 1
Joined: 22 Nov 2011 14:06

combination FTP + text file

#1 Post by ccir » 22 Nov 2011 14:17

Hello, first sorry for my english - I am new and i discover the power of .bat files. from 3 days i try to create one file that list the files by ftp with ls (filter by date) command and create a text file with the name of files on the server. I can list the files on cmd window but i don't know how to write the labels of each files in a text file - example c:\labels.tmp. No way... I do this:

@ftp -i -s:"%~f0"&GOTO:EOF

open myStorage.com
user
password
pwd
!:--- FTP commands below here ---
lcd c:\Temp
!:cd public_html/MyRemoteDirectory
binary
ls "*201111161009*"
ls "*"
disconnect
bye

can anybody help me? thx.

Post Reply