HR78 Posted June 20, 2011 Posted June 20, 2011 Hi All. I Have 1 question. How I make multiple files download if I dont know names of the files?? #Include <_FTP.au3> $server = 'server.host.com' $username = 'username' $pass = 'password' $dllhandle = DllOpen('wininet.dll') $Open = _FTPOpen('MyFTP Control') $Conn = _FTPConnect($Open, $server, $username, $pass) _FTPGetFile($Conn,"/hello.txt", @ScriptDir & "/hello.txt", 0, 0) $Ftpc = _FTPClose($Open) DllClose($dllhandle) In this script I have 1 file with name hello.txt , if i have 10 files and dont know names how i make ftp download. All files is .txt Thanks in advance.
hannes08 Posted June 20, 2011 Posted June 20, 2011 Did you try "mget *.txt" or _FTP_ListToArray() to see what files are there and then loop through and _FTPGetFile()? Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler]
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now