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

Advertisement

t603
Joined:
Posts:
7
Location:
Prague

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

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
29,070
Location:
Prague, Czechia

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

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

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

Reply with quote

Advertisement

You can post new topics in this forum