Differences
This shows you the differences between the selected revisions of the page.
2019-09-30 | 2020-02-06 | ||
using %WINSCP_PATH% (martin) | syntax highlighting for local custom commands (martin) | ||
Line 55: | Line 55: | ||
Use the following command to delete a large directory structure in a separate process: | Use the following command to delete a large directory structure in a separate process: | ||
- | <code>cmd.exe /c start "" cmd /c ""%WINSCP_PATH%\WinSCP.com" /command "open !E" "cd !/" "rm !&" "exit" & "%WINSCP_PATH%\WinSCP.exe" "!E" /refresh "!/""</code> &winpath | + | <code custom-command-local> |
+ | cmd /C start "" cmd /C ""%WINSCP_PATH%\WinSCP.com" /command "open !E" "cd !/" "rm !&" "exit" & "%WINSCP_PATH%\WinSCP.exe" "!E" /refresh "!/"" | ||
+ | </code> &winpath | ||
Check custom command options //Local command//, //Apply to directories// and //Use remote files//. | Check custom command options //Local command//, //Apply to directories// and //Use remote files//. | ||
Line 78: | Line 80: | ||
Example shows how to use local custom command that maps file path to URL. | Example shows how to use local custom command that maps file path to URL. | ||
- | <code>!`cmd.exe /c echo @echo off > %TEMP%\url.bat & | + | <code custom-command-local>!`cmd /C echo @echo off > %TEMP%\url.bat & |
echo set FILE_PATH=%1 >> %TEMP%\url.bat & | echo set FILE_PATH=%1 >> %TEMP%\url.bat & | ||
echo echo https://www.example.com%FILE_PATH:home/user/public_html=~user% >> %TEMP%\url.bat` | echo echo https://www.example.com%FILE_PATH:home/user/public_html=~user% >> %TEMP%\url.bat` | ||
- | cmd.exe /c %TEMP%\url.bat !/! & pause</code> | + | cmd /C %TEMP%\url.bat !/! & pause</code> |
Hints: | Hints: | ||
Line 127: | Line 129: | ||
==== Continuously in Separate Window ==== | ==== Continuously in Separate Window ==== | ||
- | ··cmd /C start "!@:!/!" "%ProgramFiles%\PuTTY\plink.exe" -P !# !U@!@ tail -f "!/!"·· | + | <code custom-command-local> |
+ | cmd /C start "!@:!/!" "%ProgramFiles%\PuTTY\plink.exe" -P !# !U@!@ tail -f "!/!" | ||
+ | </code> | ||
Check custom command options //Local command// and //Use remote files//. | Check custom command options //Local command// and //Use remote files//. | ||
Line 174: | Line 178: | ||
Select //Local command// [[custom_command#types|type]]. | Select //Local command// [[custom_command#types|type]]. | ||
- | ··"C:\Program Files (x86)\WinMerge\WinMergeU.exe" /e /x /u "!" "!^!" | + | <code custom-command-local> |
+ | "C:\Program Files (x86)\WinMerge\WinMergeU.exe" /e /x /u "!" "!^!" | ||
+ | </code> | ||
Replace ''C:\Program Files (x86)'' with ''C:\Program Files'' on 32-bit system. &winpath &win32 &win64 | Replace ''C:\Program Files (x86)'' with ''C:\Program Files'' on 32-bit system. &winpath &win32 &win64 |