Post a reply

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)


Topic review


Re: Open file on connect via stored session

You cannot do this with WinSCP yet.
This request is tracked here:

Ok, I've made some progress now. Apparently, when specifying a directory, a slash has to be included after the directory as well eg "/dir/". This allows me to login directly to a directory, but when I try to specify a file as well, I get "the directory name is invalid".

Open file on connect via stored session

I have been trying to figure out how to automatically open a remote file when connecting to a stored session by passing parameters to "winscp.exe" but when I specify the stored as per "stored_session/file_path/file_name", WinSCP brings up the file copy dialog instead of opening the file. Does anyone know what I am doing wrong?