Topic "please don't hurt the newbie"

Author Message
hughestr
[View user's profile]

Joined: 2007-01-29
Posts: 1
Location: WI
i've been through the documentation, but I'm clearly missing something. I want to do a put to my home dir on a server from the windows command line. I can connect, but it does not execute the put...any ideas? here is my session:
++++++++++++++++++++++++++++++
F:\>WinScp3.com thughes:<password>@<server> /command put c:\localdir\file.txt
Initialisation...
Searching for host...
Connecting to host...
Authenticating...
Using username "thughes".
Authenticated.
Starting the session...
Reading remote directory...
Session started.
Active session: [1] thughes@<server>
winscp>
++++++++++++++++++++++++++++

Thanks for any help!
Guest




Try
put c:\localdir\file.txt file.txt
or
put c:\localdir\file.txt /whatever/path/to/file.txt
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
Location: Prague, Czechia
You need to enclose whole command into quotes
WinScp3.com thughes:<password>@<server> /command "put c:\localdir\file.txt"

But I find it strange that I do not see any error message in the output. So there may be another problem as well.
_________________
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