Hi,
I made an application with MBS curl SFTP.
Downloading and uploading work, but for delete command I still get an error.
I think I have a mistake in the parameter.
Note: I use a server with 3 different domains. Eacht domain in a new folder.
For Uploading and Downloading I noticed I have to use the’/home’ folder before getting access to the domain folder.
Delete not working, message: “QOUT string not accepted”
[code]
dim curlDel as new CURLSMBS
dim commands() As String
dim intError as integer
curlDel.CollectDebugData = true
curlDel.CollectHeaderData = true
curlDel.CollectOutputData = true
CurlDel.OptionDirListOnly = true
curlDel.OptionUsername =mstrSftpUser 'contains username
curlDel.OptionPassword = mstrSftpPassword 'contains password
curlDel.OptionPort = 22222
curlDel.OptionURL = “ftp://webserver.myname.nl”
commands.Append(“RM /home/domainname1/ftp/demo/testremove.png”)
curlDel.SetOptionPostQuote(commands)
intError =curlDel.Perform
if IntError <> 0 then
msgbox curlDel.LasterrorMessage
end if
CurlDel = nil[/code]
I tried many difference commands like:
RM uppercase / lowercase, -RM / Delete -Delete
absolute path, non absultepath, starting /, between qoutes, only the filename, folder/filename
Nothing seems to work.
Please help.