I need your help with what is happening to me.
I have a script that transfers files to an FTP server, I have no exclude or advanced settings, but the following happens to me.
I have 10 files with TXT format, 5 start with the name
AB and the others start with the name
CD, and it only transfers the ones with the name
AB, the
CD files are excluded for no reason.
Can anyone help me by telling me what is going on.
An additional fact, if I replace the initial of the name
CD to
DE, the same file is transferred without problems.
Attached is the command you are running..;
@echo off
"C:\Program Files (x86)\WinSCP\WinSCP.com" ^
/log="C:\ep_depot\Temp\WinSCP.log" /ini=nul ^
/command ^
"open sftp://xxxxxxx/ -hostkey=""ssh-dss xxxxxx="" -privatekey=""H:\keys\SSH_private_key.ppk""" ^
"lcd ""H:\Forms\Forms\Final""" ^
"cd /DO" ^
"put *" ^
"exit"
set WINSCP_RESULT=%ERRORLEVEL%
if %WINSCP_RESULT% equ 0 (
echo Success
) else (
echo Error
)
exit /b %WINSCP_RESULT%