[code] dim e as integer
dim d as new CURLSMBS
d.OptionURL=“sftp://"
d.OptionVerbose = true
d.OptionDirListOnly = true
d.CollectOutputData = true
d.CollectDebugData = true
d.OptionUsername = ""
d.OptionPassword = "*”
dim ws() As String
ws.Append"RNFR file move"
ws.Append"RNTO destination path"
d.SetOptionPostQuote(ws)
e=d.Perform
listbox1.DeleteAllRows
dim s as string = d.DebugData+EndOfLine+d.OutputData
s = ReplaceLineEndings(s, EndOfLine)
dim lines() as string = split(s, EndOfLine)
for each line as string in lines
listbox1.AddRow line
next
listbox1.addrow "Result: "+str(e)
[/code]
I am using sftp server and I want to move file .
when above code is executed ,connected to sftp but it showing Result:21 and uknown sftp command error