>>Has anyone done anything with the new FTPCommand function in the WinInet.dll?
>>
>>One little example of a DECLARE statement and a call would sure help a lot.
>>
>
>
DECLARE SHORT FTPCommand IN INETFTP INTEGER, INTEGER, INTEGER, STRING @, INTEGER
>
>* Assuming you have an hConnect already, that you want a response,
>* are doing an ASCII transfer, and want to issue a PWD
>
>IF FTPCommand(hConnect,1,1,'PWD' + CHR(13) + CHR(10),0) = 0
> * Failed
>ELSE
> * Succeeded - call InternetReadFile() to get the response
>ENDIF
Ed,
I seem to have everything working except that no matter what UNIX command that I send to the server I get the error that the command is not understood. The exception to this is if I send "PWD". This will freeze the application requiring Ctrl+Alt+Del.
My syntax is:
lcFTPCommand = "ls"
lnResult = 0
lnReturn = FtpCommand(lnConnect_Handle,1,1,lcFTPCommand,0,@lnResult)
The other commands that I have tried have all been the simplest that I could think of such as "ls" but I would get the error that the command ls was not understood.
Any ideas?
TIA Ed