commandline » Revisions »
Differences
This shows you the differences between the selected revisions of the page.
2021-06-24 | 2021-07-10 | ||
info anchor (martin) | bash (martin) | ||
Line 245: | Line 245: | ||
===== Hint ===== | ===== Hint ===== | ||
If you are going to run WinSCP from command-line often, you may wish to add WinSCP installation directory to [[integration#search_path|search path]]. | If you are going to run WinSCP from command-line often, you may wish to add WinSCP installation directory to [[integration#search_path|search path]]. | ||
+ | |||
+ | ===== [[bash]] Running from Bash ===== | ||
+ | When running WinSCP from a shell, where ''/switch'' is interpreted as a path, such as Git Bash, use a dash (''-'') instead of the slash (''/'') for switches. For example: | ||
+ | |||
+ | <code batch> | ||
+ | ./WinSCP.com -script="myscript.txt" -log="myscript.log" | ||
+ | </code> |