parameter not working as shown in docs

Advertisement

nitram
Joined:
Posts:
7

parameter not working as shown in docs

I am using WinSCP 4.2.7 on WinXP SP3. Documentation for command-line parameters shows this syntax:

winscp.exe [(sftp|ftp|scp)://][user[:password]@]host[:port][/path/[file]]

I want to use the /path/ parameter, however, it does not work as shown. I enter this:

winscp.exe sftp://user:password@myserver.com:22 /afs/myserver.com/home/c/m/cmartin/OldFiles/

WinSCP connects OK but not does use the /path/ parameter. Instead it opens afs/myserver.com/home/c/m/cmartin (HOME folder). I am able to open and view the ./OldFiles subfolder from WinSCP interface, so the folder is definitely accessible. Log file is included below. I have tried this on 2 different servers, same result, it ignores the /path/ parameter and opens to home folder instead.

Is this a bug or is the syntax incorrect?

Chris

===============================
Log file
===============================
Real path is '/afs/myserver.com/home/c/m/cmartin'
Listing directory "/afs/myserver.com/home/c/m/cmartin".
Type: SSH_FXP_OPENDIR, Size: 43, Number: 267
Type: SSH_FXP_HANDLE, Size: 13, Number: 267
Type: SSH_FXP_READDIR, Size: 13, Number: 524
Type: SSH_FXP_NAME, Size: 8254, Number: 524
Type: SSH_FXP_READDIR, Size: 13, Number: 780
Reading symlink ".kshrc".
Type: SSH_FXP_READLINK, Size: 50, Number: 1043
Type: SSH_FXP_STAT, Size: 50, Number: 1297
Type: SSH_FXP_STATUS, Size: 28, Number: 780
Storing reserved response
Type: SSH_FXP_NAME, Size: 115, Number: 1043
Type: SSH_FXP_ATTRS, Size: 37, Number: 1297
Reading symlink ".profile".
Type: SSH_FXP_READLINK, Size: 52, Number: 1555
Type: SSH_FXP_STAT, Size: 52, Number: 1809
Type: SSH_FXP_NAME, Size: 119, Number: 1555
Type: SSH_FXP_ATTRS, Size: 37, Number: 1809
Reading symlink ".project".
Type: SSH_FXP_READLINK, Size: 52, Number: 2067
Type: SSH_FXP_STAT, Size: 52, Number: 2321
Type: SSH_FXP_NAME, Size: 51, Number: 2067
Type: SSH_FXP_ATTRS, Size: 37, Number: 2321
Reading symlink ".plan".
Type: SSH_FXP_READLINK, Size: 49, Number: 2579
Type: SSH_FXP_STAT, Size: 49, Number: 2833
Type: SSH_FXP_NAME, Size: 45, Number: 2579
Type: SSH_FXP_ATTRS, Size: 37, Number: 2833
Reading symlink "work".
Type: SSH_FXP_READLINK, Size: 48, Number: 3091
Type: SSH_FXP_STAT, Size: 48, Number: 3345
Type: SSH_FXP_NAME, Size: 71, Number: 3091
Type: SSH_FXP_ATTRS, Size: 37, Number: 3345
Reading symlink "Gibbs".
Type: SSH_FXP_READLINK, Size: 49, Number: 3603
Type: SSH_FXP_STAT, Size: 49, Number: 3857
Type: SSH_FXP_NAME, Size: 55, Number: 3603
Type: SSH_FXP_STATUS, Size: 29, Number: 3857
Status code: 2, Message: 3857, Server: No such file, Language:
(ECommand) Error reading symlink 'Gibbs'.
No such file or directory.
Error code: 2
Error message from server: No such file
Request code: 17
Reading symlink "ms".
Type: SSH_FXP_READLINK, Size: 46, Number: 4115
Type: SSH_FXP_STAT, Size: 46, Number: 4369
Type: SSH_FXP_NAME, Size: 61, Number: 4115
Type: SSH_FXP_ATTRS, Size: 37, Number: 4369
Reading symlink "ut".
Type: SSH_FXP_READLINK, Size: 46, Number: 4627
Type: SSH_FXP_STAT, Size: 46, Number: 4881
Type: SSH_FXP_NAME, Size: 75, Number: 4627
Type: SSH_FXP_ATTRS, Size: 37, Number: 4881
Reading symlink "work.old.12361".
Type: SSH_FXP_READLINK, Size: 58, Number: 5139
Type: SSH_FXP_STAT, Size: 58, Number: 5393
Type: SSH_FXP_NAME, Size: 65, Number: 5139
Type: SSH_FXP_STATUS, Size: 29, Number: 5393
Status code: 2, Message: 5393, Server: No such file, Language:
(ECommand) Error reading symlink 'work.old.12361'.
No such file or directory.
Error code: 2
Error message from server: No such file
Request code: 17
Reading symlink "ut.old.12361".
Type: SSH_FXP_READLINK, Size: 56, Number: 5651
Type: SSH_FXP_STAT, Size: 56, Number: 5905
Type: SSH_FXP_NAME, Size: 63, Number: 5651
Type: SSH_FXP_STATUS, Size: 29, Number: 5905
Status code: 2, Message: 5905, Server: No such file, Language:
(ECommand) Error reading symlink 'ut.old.12361'.
No such file or directory.
Error code: 2
Error message from server: No such file
Request code: 17
Reading symlink ".cshrc".
Type: SSH_FXP_READLINK, Size: 50, Number: 6163
Type: SSH_FXP_STAT, Size: 50, Number: 6417
Type: SSH_FXP_NAME, Size: 115, Number: 6163
Type: SSH_FXP_ATTRS, Size: 37, Number: 6417
Reading symlink ".kshrc.old".
Type: SSH_FXP_READLINK, Size: 54, Number: 6675
Type: SSH_FXP_STAT, Size: 54, Number: 6929
Type: SSH_FXP_NAME, Size: 47, Number: 6675
Type: SSH_FXP_ATTRS, Size: 37, Number: 6929
Reading symlink ".login".
Type: SSH_FXP_READLINK, Size: 50, Number: 7187
Type: SSH_FXP_STAT, Size: 50, Number: 7441
Type: SSH_FXP_NAME, Size: 115, Number: 7187
Type: SSH_FXP_ATTRS, Size: 37, Number: 7441
Reading symlink ".profile.old".
Type: SSH_FXP_READLINK, Size: 56, Number: 7699
Type: SSH_FXP_STAT, Size: 56, Number: 7953
Type: SSH_FXP_NAME, Size: 51, Number: 7699
Type: SSH_FXP_ATTRS, Size: 37, Number: 7953
Status code: 1
Type: SSH_FXP_CLOSE, Size: 13, Number: 8196
Startup conversation with host finished.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,440
Location:
Prague, Czechia

Re: parameter not working as shown in docs

winscp.exe sftp://user:password@myserver.com:22 /afs/myserver.com/home/c/m/cmartin/OldFiles/
There must be no space between port and path.

Reply with quote

Advertisement

You can post new topics in this forum