Topic "PLEASE, command-line options"

Author Message
leandro_sa

Guest


i really really need the ability to send files with command-line options , like
winscp file.txt 200.245.323.121:/root

just like in linux.. Wink
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Use some command line SCP tool. PSCP for example.
_________________
Martin Prikryl
Guest




I also could make use of command line options, I operate on several different machines on a network, none of which remember any settings.

When i log in, the network executes a startup script that loads various programs for me. While I can enter into the script something along the lines of 'WinScp user@host', I find errors when I add 'WinScp user@host:port' because it tries to resolve host:port as a domain name.

Essentially, I want to be able to start a session on a custom port from command line without using a pre-saved profile, rather than just transfer one file.

Perhaps theres an option I'm missing, if not then surely something as minor as custom ports from the command line can be added to the next version - please?!

Many Thanks
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
OK, I may add port option on command line. However better solution for you is to configure session and save settings to INI file instead of registry (see preferences dialog). Than you may specify name of the stored session to open on command line.
_________________
Martin Prikryl
Bjrn

Guest


prikryl wrote:
However better solution for you is to configure session and save settings to INI file instead of registry (see preferences dialog).

Right. You just forgot to mention that WinSCP has to be installed on a network drive first. Then set to use INI-File, also correct all other (local) paths to network drives. Then store your sessions. now you can call them from any network client from commandline.

But I must say network installation is not really stable jet. Sometimes WinSCP misses changes made, and sometimes it wouldn't delete sessions (after restart they appear again). Workaround : When making changes, change to registry, and back to ini afterwards.

Bjrn
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Bjrn wrote:
But I must say network installation is not really stable jet. Sometimes WinSCP misses changes made, and sometimes it wouldn't delete sessions (after restart they appear again). Workaround : When making changes, change to registry, and back to ini afterwards.

Can you tell me some sequence of steps you do that would show actual problem?
_________________
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