Sign in to follow this  
Followers 0
dnsi

FTP Stuff onto the internet

7 posts in this topic




I tried to FTP a file and then Ftped another file but it didn't work. I user the functions in FTP.au3

Ummm... Can you show some code? :D


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

Yah i can:

$Open1 = _FTPOpen('MyFTP Control1')
$Conn1 = _FTPConnect($Open1, $server, $username, $pass)
_FTPDelFile($Conn1, '/config.con')
$Ftpp1 = _FtpPutFile($Conn1, @TempDir & '\config.con', '/config.con')
$Ftpp2 = _FtpPutFile($Conn1, @TempDir & '\config1.con', '/config1.con')//error happens here and doesn't upload.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

I forgot if it overwrote a file try a _FTPDelFile($Conn1, '/config1.con') there too.

well what does $Ftpp2 contain ?

also call GetLastError @ kernel32.dll after the error.

Edited by w0uter

My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll

Share this post


Link to post
Share on other sites

Func _GetLastError()
    ;[DllImport("kernel32.dll")]
    ;static extern int GetLastError ();
    $ret = DllCall("kernel32.dll", "int" , "GetLastError" )
    Return $ret[0]
EndFunc

is this right @ w0uter?


My UDF's : Startet on : 06.06.2006_CaseSearchOrReplaceStr();~> Searches OR Replaces a String,;~> With or Without Casesensivity

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