Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Cannot delete files on remote server, custom command works.

Can you post a script and associated log file showing when WinSCP sends backslash?
aminchar

Re: Cannot delete files on remote server, custom command works.

Some more contribution to this bug:

The issue appears to be forward slash vs back slash. WinSCP appears to send windows style "Back slash = \" unless explicitly specified in a FullPath in a script.

The server in question appears to be unix server and likes forward slash if FullPath specified. WinSCP by default appears to send FullPath in GUI or console (if FullPath not specified explicity using correct slash). If "call" command is used and fullpath manually specfied using "Forwad Slash = /" then the deletion process works file.
martin

Re: Cannot delete files on remote server, custom command works.

Thanks for your post. This issue is being tracked already.
aminchar

Cannot delete files on remote server, custom command works.

I can connect, list directory and copy files from server to local fine but cannot delete file(s) on server (or MOVE file from server to local) in GUI or console mode (latter using rm command). Also the -delete command in scripting does not work either for "delete after copy to local". This occurs only with a particular outside/remote server.

However, "custom command" "DELE" does work using the "call" command like:

$winscp>call DELE TheFileName

Version 4.2.3
FTP over SSL
SSL Explicit Encryption
Port 21
Passive Mode

ps: I noticed in the log file that winscp uses full file path to send the DELE command. However that does not work with the call command either! If full file path is not used then "call DELE" does work example:

DELE /inbound/somefile FAILS
DELE somefile WORKS

Note: /inbound is the "Current directory".