Using the following code, i get “Fehlercode: 23 Fehler: Failed writing body (0 != 2324)” errors. But the same credentials and path settings working fine for uploads.
[code] dim e as integer
dim d as new CURLSMBS
d.OptionUsername = FTPLoginID
d.OptionPassword = FTPPassword
d.OptionURL=“ftp://192.168.98.31”
d.OptionFTPListOnly = true
dim ws() As String
ws.Append “DELE " + FTPCurrentPath.Replace(”/","") + “/” + FileName
d.SetOptionPostQuote(ws)
// run
e=d.Perform
If e= 0 Then
DB_WAG4_AddToMainlog(“FTP”, “Datei " + FileName + " von Nutzer " + Nutzernummer + " wurde entfernt”)
GetNutzerdateien()
Else
MsgBox "Fehlercode: " + Str(e) + EndOfLine + "Fehler: " + d.LasterrorMessage
End If[/code]
I’ve tried different variations of the FTPCurrentPath variable, but the error code 23 stays while the number after != changes in the error message.