I'm trying to use the FTP commands in a script and nothing is happening. Every command reports successful completion but no transfer takes place. I tried setting the script to log in to a nonexistent machine with a nonexistent user and a nonexistent password and it reported successful login. FTPSetDisplayOutput 1 has no effect, nothing displays.
The system I am trying to access using Rumba FTP I can successfully FTP into and transfer files to and from using the Windows built in ftp commands.
Are the commands FTPConnect, FTPChangeDire, FTPDirToFile, and FTPSend supposed to work in Rumba Desktop 8.1.0 SP0 Patch0?
The full script I am attempting to use (with names of internal systems altered) is:
Sub Main
Dim UserName As String
Dim UserPassword As String
ChDrive "C"
ChDir "\\Mydir"
MsgBox CurDir()
MsgAsk "UserName",UserName, 10
MsgAskPassword "Password",UserPassword, 8
FTPSetDisplayOutput 1
FTPConnect "ourserver",UserName,UserPassword
MsgBox NM_ResultCode
If NM_ResultCode <> 0 Then
MsgBox NM_ResultText
Else
Print "Logged in, changing directory"
FTPChangeDir "//1234.ABCDE.FGHI.JKL"
If NM_ResultCode <> 0 Then
MsgBox NM_ResultText
Else
FTPDirToFile "","DIR1.TXT"
Print "Directory changed, sending file"
FTPSend "mystuff","mystuff.txt","ASCII","REPLACE"
If NM_ResultCode <> 0 Then
MsgBox NM_Result_Text
Else
Print "File Sent"
End If
End If
End If
FTPDisconnect
End Sub
#Rumba




