Differences
This shows you the differences between the selected revisions of the page.
2018-11-01 | 2019-07-25 | ||
code wrapping for the new design (martin) | better wording and phrase ordering (martin) | ||
Line 58: | Line 58: | ||
==== Passing Session Settings ==== | ==== Passing Session Settings ==== | ||
- | As mentioned above use a custom command pattern ''!S'' to pass the current session settings in a form of a session URL to the script.·In the script, use ''[[library_sessionoptions_parseurl|SessionOption.ParseUrl]]'' to parse the %%URL%%. | + | As mentioned above use a custom command pattern ''!S'' to pass the current session settings in a form of a session URL to the script. |
+ | |||
+ | In the script, accept the %%URL%% using a parameter (''sessionUrl'' here) and use ''[[library_sessionoptions_parseurl|SessionOption.ParseUrl]]'' to parse the %%URL%%. | ||
<code powershell> | <code powershell> | ||
Line 75: | Line 77: | ||
</code> | </code> | ||
- | Use ''!S'' pattern in the custom command to feed the session %%URL%% to ''sessionUrl'' parameter: | + | In the custom command, feed the session %%URL%% to the ''sessionUrl'' parameter: |
<code batch> | <code batch> | ||
Line 124: | Line 126: | ||
==== Passing Session Settings ==== | ==== Passing Session Settings ==== | ||
- | As mentioned above use a custom command pattern ''!S'' to pass the current session settings in a form of a session URL to the script.·In the script, pass the %%URL%% to ''[[scriptcommand_open|open]]'' command. | + | As mentioned above use a custom command pattern ''!S'' to pass the current session settings in a form of a session URL to the script. |
+ | |||
+ | In the script, accept a session %URL% as a script parameter and pass it to ·[[scriptcommand_open|''open'' command]]. | ||
<code winscp> | <code winscp> | ||
Line 130: | Line 134: | ||
</code> | </code> | ||
- | Use ''!S'' pattern in the custom command to feed the session %%URL%% to a script parameter: | + | In the custom command, feed the session %%URL%% to the script parameter: |
<code batch> | <code batch> |