Jass Posted August 5, 2010 Share Posted August 5, 2010 Hey out there, I try to code a small script which does nothing else than downloading all files from a given remote path on a ftp server. This is what I already did: #include <FTPex.au3> $server = 'www.myserver.de' $i_Passive = '0' $port = '0' $username = 'username' $pass = 'password' $Open = _FTP_Open('myserver.de') $Conn = _FTP_Connect($Open, $server, $username, $pass,$i_Passive,$port) _FTP_DirSetCurrent($Conn,"/backup/files") $dir = _FTP_DirGetCurrent($Conn) MsgBox(0,"Test","Test: " & $dir) I tried the UDF _FTP_FindFile but I don't understand it correctly. Can anybody explain me what to do that the script will download all the files from my backup-dir? I know how to download a single file with _FTP_FileGet but not for a large amount of files. Thanks in advance. Jass Link to comment Share on other sites More sharing options...
Skitty Posted January 9, 2011 Share Posted January 9, 2011 (edited) EDIT!!!<div><br></div><div>Figured it out a few min's ago #include <FTPex.au3></div><div><br></div><div>$server = ''</div><div>$i_Passive = '1'</div><div>$port = '21'</div><div>$username = ''</div><div>$pass = ''</div><div><br></div><div>$Open = _FTP_Open('FTP')</div><div>$Conn = _FTP_Connect($Open, $server, $username, $pass,$i_Passive,$port)</div><div>_FTP_FilePut($Conn,"procexp.exe","/Data/procexp.exe")</div><div>_FTP_Close($Open)<br></div> Edited January 9, 2011 by xJSLRx Link to comment Share on other sites More sharing options...
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