venkatb Posted September 22, 2008 Share Posted September 22, 2008 Hi friends... i am trying to use _FTPConnect() command. But i am getting '0' return value always. I have to get an identifier instead of '0'. $Server = "10.22.89.20" $user = "anonymous" $pass = "1234" $port = 21 $FTP = _FTPOpen("asda") is successful and $FTP = 13369348 $FTPCONN = _FTPConnect($FTP, $Server, $user, $pass, $port) is giving '0' as return. But as per the UDF, it has too return some identifier. Some body please help me to know where i have gone wrong... Link to comment Share on other sites More sharing options...
martin Posted September 22, 2008 Share Posted September 22, 2008 (edited) Hi friends... i am trying to use _FTPConnect() command. But i am getting '0' return value always. I have to get an identifier instead of '0'. $Server = "10.22.89.20" $user = "anonymous" $pass = "1234" $port = 21 $FTP = _FTPOpen("asda") is successful and $FTP = 13369348 $FTPCONN = _FTPConnect($FTP, $Server, $user, $pass, $port) is giving '0' as return. But as per the UDF, it has too return some identifier. Some body please help me to know where i have gone wrong...Add this line before any _FTP functions $hDll = DllOpen("Wininet.dll") and this line after you have finished with the _FTP functions DllClose($hDll) Edited September 22, 2008 by martin 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...
venkatb Posted September 22, 2008 Author Share Posted September 22, 2008 Add this line before any _FTP functions $hDll = DllOpen("Wininet.dll") and this line after you have finished with the _FTP functions DllClose($hDll) Thank You...i got it.. 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