Re: Need to Change file name for some specific files whose starting is same letters
"put -filemask=|Documents_Action_*.* -rawtransfersettings[1] FileNameCase=0 *.* " ^
https://winscp.net/eng/docs/file_mask#include_exclude
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
"put -filemask=|Documents_Action_*.* -rawtransfersettings[1] FileNameCase=0 *.* " ^
@echo off
"C:\Program Files (x86)\WinSCP\WinSCP.com" ^
/log="C:\Program Files (x86)\WinSCP\logs\AutoTransfer.log" /ini=nul ^
/command ^
"open sftp://serverdetails/ -hostkey=""ssh-rsa 2048 XXXXXXX""" ^
"lcd E:\DSU\serverdetails\usr\sftpuser\DSU\DATA\OUT" ^
"cd /EInvoice" ^
"put -rawtransfersettings[1] FileNameCase=1 Documents_Action_*.* " ^
"put -rawtransfersettings[1] FileNameCase=0 *.* " ^
"exit"
set WINSCP_RESULT=%ERRORLEVEL%
if %WINSCP_RESULT% equ 0
(
echo Success
)
else
(
echo Error
)
exit /b %WINSCP_RESULT%
Documets
).
Documents_Action
) to be in upper case while transferring remote directory.
Documents_Action
) is moving in both type "uppercase" and "no change".