![]() Make sure you keep the exact format of the multi-line command, as multi-line batch file commands are fragile. At the end, the batch file checks WinSCP exit code to choose further actions to take and propagates the WinSCP exit code to a batch file exit code using the exit /b command. Additionally the batch file enables session logging using the /log switch and isolates the script run from a GUI configuration using the /ini=nul switch. bat) template that executes the with the above commands, specified using the /command command-line switch. Batch file – Generates a Windows batch file (.Script file – Generates a script file template that you execute using the /script command-line switch. ![]() ![]() Use the Format to select a format of the script to generate: When generating an URL for a selected file(s), one URL per a file is displayed. When generating an URL for a site, only one URL is displayed. The generated URL(s) is shown in the bottom box. As the generated syntax is WinSCP-specific, the option WinSCP-specific should be selected along. As the extension is WinSCP-specific, the option WinSCP-specific should be selected along.Ĭheck the Advanced settings to serialize all advanced site settings into the URL. Note that you need to enable the option with the WebDAV protocol, if you want WinSCP to handle the URL, as WinSCP never registers for the http protocol.Ĭheck the Save extension to include a save extension into the URL. Note that some (most) SSH clients need not understand a session URL that includes the host key fingerprint.Ĭheck the WinSCP-specific to generate an WinSCP-specific URL. The option is not available, if no session was opened to the host as the host key is not known yet. The option is available for an SFTP and an SCP ( SSH-based) sessions only. The option is not available when generating an URL for selected file(s) as a path to the file(s) is used instead.Ĭheck the SSH host key to include an SSH host key fingerprint into the URL. When opened from the main window, the current working remote directory is used. When the dialog is opened from the Login dialog, Remote directory as specified on the Advanced site settings dialog is used. The option is not available when the dialog is opened from the Login dialog and the password was not specified or when the current session does not use a password authentication or when the password was not stored nor remembered.Ĭheck the Initial directory to include an initial remote directory into the URL. Make sure you protect an URL that includes the password appropriately. The option is not available when the dialog is opened from the Login dialog and the user name was not specified or (rarely) when the current session did not require the user name.Ĭheck the Password to include password into the URL. Other parts can be included optionally.Ĭheck the User name to include username into the URL. The generated URL always includes a protocol and a host name portions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |