Open file on connect via stored session

Advertisement

ardbard
Guest

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?

Reply with quote

Advertisement

ardbard
Guest

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

Reply with quote

Advertisement

You can post new topics in this forum