Jump to content

Recommended Posts

Posted (edited)

Hi,

I'm using FTPEx to send a file sometimes it just create the file but with 0 size, and sometimes transfert is OK.

I've tried with differents ftp server and it's the same problem.

Do I have something wrong in my code? Thanks in advance for your help.

#include <FTPEx.au3>
#include <File.au3>

$server = 'myftpserver'
$username = 'user@myftpserver'
$pass = 'xxxxxx'

$Open = _FTP_Open('MyFTP')
$Conn = _FTP_Connect($Open, $server, $username, $pass, 0, 21)

_FTP_FilePut($Conn, 'C:\ftptest1.txt', 'ftptest1.txt', 0x08000000)

$Ftpc = _FTP_Close($Open)
Edited by chirimbol
Posted

I have changed to somethinh like that :

$Result = _FTP_FilePut($Conn, 'C:\ftptest1.txt', 'ftptest1.txt', 0x08000000)

And I can check if the put succeed, if not i make another attempt

But I can't explain why I have so many fails.

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
  • Recently Browsing   0 members

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