PLEASE, command-line options

Advertisement

leandro_sa
Guest

PLEASE, command-line options

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.. ;)

Reply with quote

Advertisement

Guest

Re: PLEASE, command-line options

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

Reply with quote

martin
Site Admin
martin avatar

Re: PLEASE, command-line options

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.

Reply with quote

Björn
Guest

Re: PLEASE, command-line options

martin 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.

Björn

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,567
Location:
Prague, Czechia

Re: PLEASE, command-line options

Björn 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?

Reply with quote

Advertisement

You can post new topics in this forum