I got the issue, I have resolved now.
Thank you for your support.
Thank you for your support.
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
@echo off
"C:\Program Files (x86)\WinSCP\WinSCP.com" ^
/log="C:\Program Files (x86)\WinSCP\logs\AutoTransfer.log" /ini=nul /command ^
"open sftp://serverdetails:50022/ -hostkey=""ssh-rsa 2048 ***************""" ^
"lcd E:\TitanSFTP\Data\IP address\usr\sftpuser\DSU\DATA\OUT" ^
"cd /Einvoice" ^
"put *.* " ^
"exit"
set WINSCP_RESULT=%ERRORLEVEL%
if %WINSCP_RESULT% equ 0
(
echo Success
)
else
(
echo Error
)
exit /b %WINSCP_RESULT%
C:\Program Files (x86)\WinSCP\logs\AutoTransfer.log
@echo off
"C:\Program Files (x86)\WinSCP\WinSCP.com" ^
/log="C:\Program Files (x86)\WinSCP\logs\AutoTransfer.log" /ini=nul ^
/command ^
"open sftp://serverdetails:50022/ -hostkey=""ssh-rsa 2048 *******************""" ^
"lcd E:\TitanSFTP\Data\server ip address\usr\sftpuser\DSU\DATA\OUT" ^
"cd /EInvoice" ^
"put -rawtransfersettings[1] FileNameCase=0 *.* " ^
"exit"
set WINSCP_RESULT=%ERRORLEVEL%
if %WINSCP_RESULT% equ 0
(
echo Success
)
else
(
echo Error
)
exit /b %WINSCP_RESULT%