Differences

This shows you the differences between the selected revisions of the page.

2016-03-18 2016-06-22
typo (martin) 5.8.4 Command-line switch /refresh to allow extensions to refresh remote panel. (martin)
Line 21: Line 21:
  * If the custom command refers to files (i.e. uses [[custom_command#patterns|patterns]] like ''!'', ''!&'', ''!^!''), WinSCP window is blocked, while the command is running. Should you want to avoid that, use ''start'' command: \\ <code batch>   * If the custom command refers to files (i.e. uses [[custom_command#patterns|patterns]] like ''!'', ''!&'', ''!^!''), WinSCP window is blocked, while the command is running. Should you want to avoid that, use ''start'' command: \\ <code batch>
cmd.exe /c start powershell.exe -File c:\example\example.ps1 cmd.exe /c start powershell.exe -File c:\example\example.ps1
 +</code>
 +  * If the command modifies a remote directory, you can run WinSCP with the ''[[commandline#operations|/refresh]]'' parameter at the end of the (PowerShell) script to have the remote panel reloaded. \\ <code powershell>
 +& "$env:WINSCP_PATH\WinSCP.exe" "$sessionUrl" /refresh "$remotePath"
</code> </code>
 +
 +

Last modified: by martin