Jump to content

Recommended Posts

Posted

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...

Posted (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 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.
Posted

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..

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
×
×
  • Create New...