Subject: Need to automate transfers of files with "[]" chars
Subject: Need to automate transfers of files with "[]" chars in the filename
I have an application that retrieves data source files from an external service for processing within our system.
I do not have control over the source filenames. Frequently "[R]" is added to the end of a file to indicate a reworked submission.
Files with the "[]" characters won't transfer, nor do they generate an error msg at the console.
Here is the command line:
winscp.exe /log="output.txt" /script="FTPCommand.txt"
Here is the script:
open sftp://User1:password@ftp.externalsite.com:22
cd xml\ForTesting
get "910680[R].xml" C:\XMLHolding\
get "913232.xml" C:\XMLHolding\
After running the script I get following in console:
Searching for host...
Connecting to host...
Authenticating...
Using username "User1".
Authenticating with pre-entered password.
Authenticated.
Starting the session...
Reading remote directory...
Session started.
Active session: [1] User1@ftp.externalsite.com
/users/User1/XML/ForTesting
913232.xml | 4 KiB | 5.8 KiB/s | ascii | 100%
Using WinSCP 4.2.7 on Windows XP Pro 2002 & Windows Server 2003.
I have an application that retrieves data source files from an external service for processing within our system.
I do not have control over the source filenames. Frequently "[R]" is added to the end of a file to indicate a reworked submission.
Files with the "[]" characters won't transfer, nor do they generate an error msg at the console.
Here is the command line:
winscp.exe /log="output.txt" /script="FTPCommand.txt"
Here is the script:
open sftp://User1:password@ftp.externalsite.com:22
cd xml\ForTesting
get "910680[R].xml" C:\XMLHolding\
get "913232.xml" C:\XMLHolding\
After running the script I get following in console:
Searching for host...
Connecting to host...
Authenticating...
Using username "User1".
Authenticating with pre-entered password.
Authenticated.
Starting the session...
Reading remote directory...
Session started.
Active session: [1] User1@ftp.externalsite.com
/users/User1/XML/ForTesting
913232.xml | 4 KiB | 5.8 KiB/s | ascii | 100%
Using WinSCP 4.2.7 on Windows XP Pro 2002 & Windows Server 2003.