Topic "Special characters in filename"

Author Message
Guest

Guest


Hi all,

I have a problem:

I'm downloading some files from an UNIX server via script, but if there is the character "[" or "]" in a filename, it doesn't work... Here's a part of the log file:

Code:

. 2009-11-30 13:24:47.659 Using SFTP protocol.
. 2009-11-30 13:24:47.720 Doing startup conversation with host.
> 2009-11-30 13:24:47.720 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2009-11-30 13:24:47.720 Type: SSH_FXP_VERSION, Size: 5, Number: -1
. 2009-11-30 13:24:47.720 SFTP version 3 negotiated.
. 2009-11-30 13:24:47.720 We believe the server has signed timestamps bug
. 2009-11-30 13:24:47.720 We will use UTF-8 strings for status messages only
. 2009-11-30 13:24:47.720 Limiting packet size to OpenSSH sftp-server limit of 262148 bytes
. 2009-11-30 13:24:47.720 Getting current directory name.
. 2009-11-30 13:24:47.720 Getting real path for '.'
> 2009-11-30 13:24:47.720 Type: SSH_FXP_REALPATH, Size: 10, Number: 16
< 2009-11-30 13:24:47.730 Type: SSH_FXP_NAME, Size: 55, Number: 16
. 2009-11-30 13:24:47.730 Real path is '/sapcs/mp1cs_home'
. 2009-11-30 13:24:47.730 Startup conversation with host finished.
. 2009-11-30 13:24:47.730 Cached directory change via "/sapcs/mp1cs_home/datafiles/A5N/ZDMS_A5N_MP1/090e/cf54d84aba54f335e10000009ee2877c" to "/sapcs/mp1cs_home/datafiles/A5N/ZDMS_A5N_MP1/090e/cf54d84aba54f335e10000009ee2877c".
. 2009-11-30 13:24:47.730 Getting current directory name.
. 2009-11-30 13:24:47.740 Listing directory "/sapcs/mp1cs_home/datafiles/A5N/ZDMS_A5N_MP1/090e/cf54d84aba54f335e10000009ee2877c".
> 2009-11-30 13:24:47.740 Type: SSH_FXP_OPENDIR, Size: 91, Number: 267
< 2009-11-30 13:24:47.740 Type: SSH_FXP_HANDLE, Size: 13, Number: 267
> 2009-11-30 13:24:47.740 Type: SSH_FXP_READDIR, Size: 13, Number: 524
< 2009-11-30 13:24:47.750 Type: SSH_FXP_NAME, Size: 579, Number: 524
> 2009-11-30 13:24:47.750 Type: SSH_FXP_READDIR, Size: 13, Number: 780
< 2009-11-30 13:24:47.750 Type: SSH_FXP_STATUS, Size: 28, Number: 780
< 2009-11-30 13:24:47.750 Status/error code: 1
> 2009-11-30 13:24:47.750 Type: SSH_FXP_CLOSE, Size: 13, Number: 1028
. 2009-11-30 13:24:50.476 Closing connection.
. 2009-11-30 13:24:50.476 Sending special code: 12
. 2009-11-30 13:24:50.476 Sent EOF message


Here's the script:
Code:

option batch on
option confirm off
open xxx@xxx
cd /sapcs/mp1cs_home/datafiles/A5N/ZDMS_A5N_MP1/090e/cf54d84aba54f335e10000009ee2877c
option transfer binary
get "HTA 6201-210-44 Prozessschritt-Beschreibung [04].docm" D:\test\
close
exit


I have no idea what to do...

Thanks for your help,
Thomas
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24552
Location: Prague, Czechia
Code:
get "HTA 6201-210-44 Prozessschritt-Beschreibung [[]04].docm" D:\test\


Please read documentation. If that does not help, come back.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License