Post a reply

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)


Topic review


Re: Unable to download the file to a local directory.

You need to add trailing backslash to the destination folder path.

Can anybody provide me some thoughts :idea: on this ? Please :)

Unable to download the file to a local directory.

Hi All,

We recently started using Winscp and based on the sample scripts available at, we have coded the following script to pull the file from one of our vendors

option batch on

option confirm off
open sftp://<<user>>@<<server>>:22 -privatekey=<<private key>>
get "some file.*" E:\DATA\WorkingFiles\folder

After this, I'm running the above script using


When I look into the logs, everything seems to be right. But why trying to download I see following statements

> 2010-07-12 17:23:56.272 Type: SSH_FXP_CLOSE, Size: 13, Number: 2052
. 2010-07-12 17:23:56.272 File: "/account/some file.100712154715"
. 2010-07-12 17:23:56.272 Copying "/account/some file.100712154715" to local directory started.
. 2010-07-12 17:23:56.272 Binary transfer mode selected.
* 2010-07-12 17:23:56.272 (ExtException)
. 2010-07-12 17:23:56.272 Asking user:
[b]. 2010-07-12 17:23:56.272 'E:\DATA\WorkingFiles\folder' is not file! ()
* 2010-07-12 17:23:56.272 (EScpSkipFile) 'E:\DATA\WorkingFiles\folder' is not file!
. 2010-07-12 17:23:56.272 Closing connection.
. 2010-07-12 17:23:56.272 Sending special code: 12
. 2010-07-12 17:23:56.272 Sent EOF message

From the logs I see that it is waiting on confirmation from the user if that is a folder or a file and then exiting. How do I mention that it is a folder not a file through some parameters. If there are no such parameters existing, is there any modification I need to make to the script to have this working for me.

Your earliest response is appreciated. Thanks