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

nerys64

WinSCP.com and whitespaces

if there is a whitespace in the file name, winscp.com stops reading after the white space. Using double and single quotes does not fix this behavior. Using full path instead of relative path does not fix this behavior.



C:\Users\shrimants\TEST>dir /s /b

C:\Users\shrimants\TEST\batch.bat
C:\Users\shrimants\TEST\filelist.tmp
C:\Users\shrimants\TEST\testscript (1).txt
C:\Users\shrimants\TEST\testscript (2).txt
C:\Users\shrimants\TEST\testscript (3).txt
C:\Users\shrimants\TEST\testscript (4).txt
C:\Users\shrimants\TEST\testscript (5).txt
C:\Users\shrimants\TEST\testscript (6).txt
C:\Users\shrimants\TEST\testscript.winscp

C:\Users\shrimants\TEST>"c:\Program Files (x86)\WinSCP\WinSCP.com" /script=tests
cript.winscp /parameter 'testscript (1).txt'
batch           abort
confirm         off
Searching for host...
Connecting to host...
Authenticating...
Using username "shrimant".
Authenticating with pre-entered password.
Authenticated.
Starting the session...
Reading remote directory...
Session started.
Active session: [1] shrimant@login.umd.umich.edu
C:\Users\shrimants\TEST
/home/user/s/h/shrimant/TEST
transfer        binary
File or folder ''testscript' does not exist.
System Error.  Code: 2.
The system cannot find the file specified
(A)bort, (R)etry, (S)kip, Ski(p) all: Abort

C:\Users\shrimants\TEST>"c:\Program Files (x86)\WinSCP\WinSCP.com" /script=tests
cript.winscp /parameter "testscript (1).txt"
batch           abort
confirm         off
Searching for host...
Connecting to host...
Authenticating...
Using username "shrimant".
Authenticating with pre-entered password.
Authenticated.
Starting the session...
Reading remote directory...
Session started.
Active session: [1] shrimant@login.umd.umich.edu
C:\Users\shrimants\TEST
/home/user/s/h/shrimant/TEST
transfer        binary
File or folder 'testscript' does not exist.
System Error.  Code: 2.
The system cannot find the file specified
(A)bort, (R)etry, (S)kip, Ski(p) all: Abort