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

martin

oneofmany wrote:

ok i know why this doesnt work. I have a ^ in my pw, and the Batch makes ^ to ^^ and "^^" to "^^^^". So i think i cant use this special sign ? Dont I?

You can definitely use that from script file. It has probably some special meaning on windows command line. You can also URL-encode it, if you need to use command line.
oneofmany

ok i know why this doesnt work. I have a ^ in my pw, and the Batch makes ^ to ^^ and "^^" to "^^^^". So i think i cant use this special sign ? Dont I?
Guest

Hi, I made some tests to fix the Problem, but still without success.
When I Clean-up registry and I run the batch, it asks me for fingerprint, i type "yes" but still the same Problem : "No Authentification".

Strange : When I call the Batch without the pw, after the Username, I have to type the pw, and then it works. But why it doesnt work with the pw in the batch ?
oneofmany

Thx for the answer. I will try to find out if this is the reason...
martin

Would this FAQ help?
oneofmany

thx it works now, but another Problem appears. I can run the command to upload in Dos-shell, but i fail to connect on the server with runnning the command in a batch.

Shell-command :
winscp "User:pw@Host" /command "put C:\File.txt /Home/" "exit"

this works,

but this (batch):
echo off
call "c:Programme\winscp\winscp" "User:pw@Host" /command "put C:\File.txt /Home/" "exit"
pause


I get the message: "Access denied", but I don't know why, the command is the same like the command i run in the shell.

Do you know why this happens?
martin

Re: Command Line Upload

Please read documentation.
oneofmany

Command Line Upload

Hi there,

i want to upload a specific file to a sftp server. I tried this with the command line Version of WinSCP. Getting connection to the server is not a Problem, but he doesn't upload. I tried following command :
-C:\Programs\WinScp\winscp.exe /console "sftp://User:pw@IP" /put "c:\Test\Test.zip /in/"

...and i tried /upload instead of /put, but with same result.

It would be very nice, if anyone can tell me the correct command to upload automatic a specific file.
I am using Version 4.0.6