Sign in to follow this  
Followers 0
HR78

FTP multi download

2 posts in this topic

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.


[URL=http://www.4shared.com/file/CMpeMOgr/KMSnano_100_Final_AIO_Activato.html]KMSnano 10.0 Final AIO Activator for Windows 7, 8 and Office 2010, 2013.exe[/URL] [URL=http://www.4shared.com/file/ODqqYSju/Windows_7_Loader_v208__x86-x64.html]Windows 7 Loader v2.0.8 (x86-x64) by Daz.exe[/URL] [URL=http://www.4shared.com/file/Jc8lQNic/Windows_7_Manager_v426__x32-x6.html]Windows 7 Manager v4.2.6 (x32-x64).exe[/URL] [URL=http://www.4shared.com/file/WMdwBjBE/Windows_8_Manager_v114.html]Windows 8 Manager v1.1.4.exe[/URL]

Share this post


Link to post
Share on other sites



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]

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0