commandline » Revisions »
Differences
This shows you the differences between the selected revisions of the page.
2010-06-02 | 2011-04-29 | ||
no summary (204.64.22.151) | session_url (martin) | ||
Line 5: | Line 5: | ||
<code> | <code> | ||
winscp.exe stored_session | winscp.exe stored_session | ||
- | winscp.exe [(sftp|ftp|scp)://][user[:password]@]host[:port][/path/[file]] | + | winscp.exe <session_url>[/path/[file]] |
winscp.exe [mysession] /synchronize [local_directory] [remote_directory] [/defaults] | winscp.exe [mysession] /synchronize [local_directory] [remote_directory] [/defaults] | ||
winscp.exe [mysession] /keepuptodate [local_directory] [remote_directory] [/defaults] | winscp.exe [mysession] /keepuptodate [local_directory] [remote_directory] [/defaults] | ||
Line 28: | Line 28: | ||
The first syntax opens the stored session (to open session, stored in folder, use path syntax "folder/session"). | The first syntax opens the stored session (to open session, stored in folder, use path syntax "folder/session"). | ||
- | The second creates the session specified by at least hostname, optionally by name of protocol, port number, username, password and initial remote path. If the remote path is not ended by slash (''/''), it is treated as path to file (or even directory) that should be downloaded. Special characters (like ''@'' in username) can be encoded using ''%XX'' syntax, where ''XX'' is hexadecimal ASCII code. | + | The second creates the session specified by [[session_url|session URL]] and optionally by initial remote path. If the remote path is not ended by slash (''/''), it is treated as path to file (or even directory) that should be downloaded. |
For security reasons, when protocol (''%%sftp://%%'', ''%%ftp://%%'' or ''%%scp://%%'') is provided on command line (possible execution from web browser/Windows Explorer), all command-like parameters that cause any automatic action are ignored, including ''/defaults'', ''/log'', ''/script'' and ''/command''. | For security reasons, when protocol (''%%sftp://%%'', ''%%ftp://%%'' or ''%%scp://%%'') is provided on command line (possible execution from web browser/Windows Explorer), all command-like parameters that cause any automatic action are ignored, including ''/defaults'', ''/log'', ''/script'' and ''/command''. |