Jump to content

FTP - problem with uploading


ulosok
 Share

Recommended Posts

Hello, I am Polish so I have little problem with spelling words in English

I have a problem with this script:

#Include <FTP.au3 >

$server = 'server.pl'
$username = 'username'
$pass = 'haslo'
        $Hand = _FTP_Open('MyFtp')
        $hSession =  _FTP_Connect($Hand, $server, $username, $pass)
       
        If @error Then
        TrayTip("Error", "Connection Failed/Check Firewall",5)
Else
        TrayTip("Connected", "Connection via FTP was successful.", 5)
EndIf
_Ftp_PutFile($Hand, @DesktopDir & "\AutoIt\GDIPlus_Image1.jpg", '\hh.jpg')

If @error Then
   TrayTip("Uploaded", "No.", 5)
Else
        TrayTip("Uploaded", "Yes.", 5)
EndIf
_FTP_Close($Hand)

Do not send the file, not even connected to the FTP (writes)

Spr. Several times this page and the file is not: /

Why?

Edited by ulosok
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...