Jump to content
Sign in to follow this  
SaTan

need help Ftp Script not work

Recommended Posts

SaTan

hi.

#NoTrayIcon

#include "ftp.au3"

$server = "192.168.1.251"

$username = "qd"

$pass = "qd"

$port="21"

$Open = _FTPOpen('MyFTP Control')

if @error then MsgBox(0,"_FTPOpen","OPEN ERR code "&$Open)

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

if @error then MsgBox(0,"Connect","Connect err code "&$Conn)

$Ftpp = _FtpPutFile($Conn, 'C:\1.exe', '/test/1.exe')

if @error then MsgBox(0,"PutFilep",$Ftpp)

$Ftpc = _FTPClose($Open)

---------------------------------------------

Return error Connect err code 0

username and pass no problem.

Internet Explorer to connect FTP server no problem

Please help

Thanks

Edited by SaTan

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.