Jump to content
Sign in to follow this  
Jass

Question depending FTPex.au3

Recommended Posts

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

Share this post


Link to post
Share on other sites

EDIT!!!<div><br></div><div>Figured it out a few min's ago&nbsp;

#include &lt;FTPex.au3&gt;</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 by xJSLRx

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...