Re: Exclude files with .tmp extension while getting files
This is more Windows batch file question than WinSCP question.
The
You need to escape it with
Or consider, if you really need to generate the WinSCP script file. You can use environment variables right in the WinSCP script file.
https://winscp.net/eng/docs/scripting#variables
The
|
is pipe operator in batch file.
You need to escape it with
^
:
echo get -delete %REMOTE_FILE% -filemask=^|*.tmp >>%COMMAND_FILE%
Or consider, if you really need to generate the WinSCP script file. You can use environment variables right in the WinSCP script file.
https://winscp.net/eng/docs/scripting#variables