commandline » Revisions »
Differences
This shows you the differences between the selected revisions of the page.
2005-05-06 | 2005-08-11 | ||
typo (martin) | 3.7.6 /privatekey (martin) | ||
Line 4: | Line 4: | ||
<code> | <code> | ||
winscp3.exe stored_session | winscp3.exe stored_session | ||
- | winscp3.exe [(scp|sftp)://][user[:password]@]host[:port][/path/[file]] | + | winscp3.exe [(scp|sftp)://][user[:password]@]host[:port][/path/[file]] [/privatekey=key_file] |
winscp3.exe [session] /upload file1 file2 file3 ... | winscp3.exe [session] /upload file1 file2 file3 ... | ||
winscp3.exe [session] /synchronize [local_directory] [remote_directory] | winscp3.exe [session] /synchronize [local_directory] [remote_directory] | ||
Line 13: | Line 13: | ||
winscp3.exe /help | winscp3.exe /help | ||
</code> | </code> | ||
- | The first syntax opens the stored session. The second creates the session specified by at least hostname, optionally by name of protocol, port number, username, password and initial remote path. In both cases, when only hostname is known, only Login dialog is shown with pre-filled hostname. Otherwise connection attempt is started immediately. If the remote path is not ended by slash (''/''), it is treated as path to file (or even directory) that should be downloaded. | + | The first syntax opens the stored session. The second creates the session specified by at least hostname, optionally by name of protocol, port number, username, password and initial remote path. In both cases, when only hostname is known, only Login dialog is shown with pre-filled hostname. Otherwise connection attempt is started immediately. If the remote path is not ended by slash (''/''), it is treated as path to file (or even directory) that should be downloaded. Parameter ''/privatekey'' specifies default private key file for all sessions. It is used when the particular session has no explicit key specified only. |
With ''/upload'' parameter WinSCP uploads specified files to remote directory of session defined using one of the previous syntaxes. A dialog to set options is displayed first (Note that this is not intended for automation, see [[scripting]], but to allow [[integration#exporer_s_send_to_context_menu|Explorer's 'Send To' menu]] integration). | With ''/upload'' parameter WinSCP uploads specified files to remote directory of session defined using one of the previous syntaxes. A dialog to set options is displayed first (Note that this is not intended for automation, see [[scripting]], but to allow [[integration#exporer_s_send_to_context_menu|Explorer's 'Send To' menu]] integration). |