Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

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

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