dallasgfx Posted March 1, 2009 Share Posted March 1, 2009 help me when i turn on the code of ftp it doesn t work i would know why it doesn t work + i have the FTP lebruary this is the code #include <ftp.au3> DllOpen('wininet.dll') $server = 'server $username = 'username' $pass = 'password' $Open = _FTPOpen('MyFTP Control') $Conn = _FTPConnect($Open, $server, $username, $pass) $Ftpp = _FtpPutFile($Conn ,"C:\~.zip" ,"\dallas.zip") $Ftpc = _FTPClose($Open) Link to comment Share on other sites More sharing options...
martin Posted March 1, 2009 Share Posted March 1, 2009 help me when i turn on the code of ftp it doesn t work i would know why it doesn t work + i have the FTP lebruary this is the code #include <ftp.au3> DllOpen('wininet.dll') $server = 'server $username = 'username' $pass = 'password' $Open = _FTPOpen('MyFTP Control') $Conn = _FTPConnect($Open, $server, $username, $pass) $Ftpp = _FtpPutFile($Conn ,"C:\~.zip" ,"\dallas.zip") $Ftpc = _FTPClose($Open)You need to add some extra code to see what is going wrong. Here is an example copied from one of my own scripts. I possibly use a different FTP udf so the parameters I use for _FTPConnect might not apply to you but for me they are important. (0x08000000 gives passive mode) $Open = _FTPOpen('MyFTP Control') if @error = -1 then msgbox(0x40000 + 0,'error','Failed to start FTP') SplashOff() Return EndIf $Conn = _FTPConnect($Open, $server, $username, $pass,0,1,0x08000000) if @error = -1 then msgbox(0x40000 + 0,'error','FTP Connection failed') SplashOff() Return EndIf $Ftpp = _FtpPutFile($Conn, $iniFile, '/public_html/somefolder/somefile',0x08000000) if @error = -1 then msgbox(0x40000 + 0,'error','Upload 1 failed') Return EndIf Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
dallasgfx Posted March 1, 2009 Author Share Posted March 1, 2009 thanks you for your helping the code send the file but when i turn it on it still on the task barr down how can i let him work and when he finish sending the file he close it self Link to comment Share on other sites More sharing options...
martin Posted March 2, 2009 Share Posted March 2, 2009 thanks you for your helpingthe code send the filebut when i turn it on it still on the task barr down how can i let him work and when he finish sending the file he close it selfCan you show your script? Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now