Topic "winscp.exe "mySession" /open "path" will open dir or file"

Author Message
t603
[View user's profile]

Joined: 2014-02-06
Posts: 6
Location: Prague
Good afternoon,

I am testing WinSCP 5.6.5 RC, the new feature /edit. I have two feature requests:

Would it be possible to add /open command, which will in case of path of type :
a) directory (start WinSCP, if not started... and) open the directory,
b) file (start WinSCP, if not started... and) open the file in EXTERNAL editor.

Thank You, Stepan
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
t603 wrote:
a) directory (start WinSCP, if not started... and) open the directory,

Use winscp.exe sftp://example.com/directory/to/open/
The trailing slash is important.
See https://winscp.net/eng/docs/commandline#session

Quote:
b) file (start WinSCP, if not started... and) open the file in EXTERNAL editor.

That's bit problematic as it requires WinSCP to run in the background watching for the edited file. But how? Hidden completely? Just a tray icon? Not sure about that.
_________________
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