Jump to content
Sign in to follow this  
newroof

Help with FTP.au3

Recommended Posts

newroof

Hi there,

I need help with the FTP.au3 script.

How I define $Folder1, $Folder2, etc. and how Ill transfer files from server to my local machine and back to the server.

Thanks.

---

$Folder1 = "ftp://ftp.mysite.com/mysite.com/Folder1/"

$Folder2 = "ftp://ftp.mysite.com/mysite.com/Folder2/"

$server = 'ftp.mysite.com'

$username = 'user'

$pass = 'password'

$Open = _FTPOpen('ftp://ftp.mysite.com/')

$Conn = _FTPConnect($Open, $server, $username, $pass)

Run("notepad.exe")

WinWaitActive("Untitled - Notepad")

Local $Lines = "Files Found:" & @CRLF

$Files = _FileListToArray($Folder1)

For $i = 1 To UBound($Files)-2

Send($Files[$i])

Send("{ENTER}")

;===============================================================================

; copy a file from $Folder1 to mycomputer

; copy a file from mycomputer to $Folder2

;===============================================================================

Next

$Ftpc = _FTPClose($Open)

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  

×