Topic "Open file on connect via stored session"

Author Message


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?


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".
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26857
Location: Prague, Czechia
You cannot do this with WinSCP yet.
This request is tracked here:
Martin Prikryl

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License