I am writing a VB 6.0 app that will read commands from a file much like FTP.exe
does. It will of course be using the wininet.dll. The only one I am having a problem with is the FTPCommand. Code is as follows:
Public Function SendCommand(ByVal strCommand As String) As Boolean
Dim hFile As Long
strCommand = "PUT test.txt"
If FtpCommand(hConnection, False, Me.TransferType, strCommand, 0, hFile) = False Then
ErrorOut Err.LastDllError, "SendCommand"
SendCommand = False
SendCommand = True
Where strCommand is actually read in from a file so it could be any valid FTP command. It recognizes the "quit" command but does not allow me to perform the "PUT". Is my syntax incorrect? Please advise.