Exclude files with .tmp extension while getting files
I need to retrieve the files excluding
I went through filemask topic and prepared below commands in batch script.
But the
*.tmp
files from remote server. The files should be deleted which got retrieved.
I went through filemask topic and prepared below commands in batch script.
echo open %USERIDPASS% -hostkey="*" -timeout=100 -passive=on > %COMMAND_FILE% echo %TRANSFER_TYPE% >> %COMMAND_FILE% echo cd %REMOTE_DIR%>> %COMMAND_FILE% echo lcd %LOCAL_DIR%>> %COMMAND_FILE% echo get -delete %REMOTE_FILE%|*.tmp >>%COMMAND_FILE% echo bye >> %COMMAND_FILE% echo winscp/script=%COMMAND_FILE% >> %LOGDIR%\%LOGFILE% "C:\Program Files (x86)\WinSCP\WinSCP.com"/ini=nul /script=%COMMAND_FILE% >> %LOGFILE%
get
command is not working as expected, can anyone help with this.