Sign in to follow this  
Followers 0
sensalim

Problem with ftp.au3

4 posts in this topic

#1 ·  Posted (edited)

I have (username).freehostia.com

It's not great but it works and it's free.

When I do ftp from start > run > cmd

It works fine... but when I use ftp.au3

(found on example scripts section),

ftpopen() works (returns non zero) but

ftpconnect() does not. It returns 0.

I ensure the password and username

are all correct.

My code:

$server = ...

$username = ...

$pass = ...

$Open = _FTPOpen('MyFTP Control')

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

^this one returns zero

How do I fix this?

Thanks!

Edited by sensalim

Share this post


Link to post
Share on other sites



I've tried many ftp script here without success................ I know that it's not the same, but if you want a simple freeware ftp program, you can download this,it works perfectly. With autoit you can create a script to upload a file using the tool in "hide" mode.

ftp utility

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Read all posts in FTP UDF topic!

You missed DllOpen('wininet.dll')

$dllhandle = DllOpen('wininet.dll')
$Open = _FTPOpen ('MyFTP Control') 
...
_FTPClose ($Open)
DllClose($dllhandle)
Edited by Zedna

Share this post


Link to post
Share on other sites

Works!

Thank you!

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  
Followers 0