I'm trying to use the findstr
in the Testing_Results1
to find the string Conexão falhou.
. But's not working because the ã
.
I tried to replace Conexão
for ConexÆo
but not worked. Also tried to skip the ã
by this way ^ã
but also not working.
:Testing_Results1
findstr /I /C:"Conexão falhou." WinSCP.log >nul && (
echo Sem conexÆo com a internet.
echo Verifique o problema e tente novamente.
pause
goto End
) || (
goto Testing_Results2
)
:Testing_Results2
findstr /I /C:"Conexão perdida" WinSCP.log >nul && (
echo ConexÆo com o servidor perdida. Tente novamente.
pause
goto end
) || (
goto Success
)
:Success
echo Arquivo(s) Exportado(s) com sucesso.
echo/ &echo/ &echo/
pause
goto End
:Error
echo Erro desconhecido ocorrido.
pause
goto End
:End
del /f /s /q %temp%\ftpsend.dat >nul 2>nul
del /f /s /q WinSCP.log >nul 2>nul
exit
Maybe this question can be considered duplicated of these:
But there i didn't found solution for my problem.
Any idea?
Edit 1:
Follow a piece of my WinSCP.log
. 2019-05-24 14:36:21.725 --------------------------------------------------------------------------
. 2019-05-24 14:36:21.725 Session name: xxxx@ftp.xxxx.com.br (Ad-Hoc site)
. 2019-05-24 14:36:21.725 Host name: ftp.xxxx.com.br (Port: 21)
. 2019-05-24 14:36:21.725 User name: xxxxx(Password: Yes, Key file: No, Passphrase: No)
. 2019-05-24 14:36:21.725 Transfer Protocol: FTP
. 2019-05-24 14:36:21.725 Ping type: Dummy, Ping interval: 30 sec; Timeout: 15 sec
. 2019-05-24 14:36:21.725 Disable Nagle: No
. 2019-05-24 14:36:21.725 Proxy: None
. 2019-05-24 14:36:21.725 Send buffer: 262144
. 2019-05-24 14:36:21.725 UTF: Auto
. 2019-05-24 14:36:21.725 FTPS: None [Client certificate: No]
. 2019-05-24 14:36:21.725 FTP: Passive: Yes [Force IP: Auto]; MLSD: Auto [List all: Auto]; HOST: Auto
. 2019-05-24 14:36:21.725 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2019-05-24 14:36:21.725 Cache directory changes: Yes, Permanent: Yes
. 2019-05-24 14:36:21.725 Recycle bin: Delete to: No, Overwritten to: No, Bin path:
. 2019-05-24 14:36:21.725 Timezone offset: 0h 0m
. 2019-05-24 14:36:21.725 --------------------------------------------------------------------------
. 2019-05-24 14:36:21.725 Conectando a ftp.xxxxx.com.br...
. 2019-05-24 14:36:21.725 Conexão falhou.
Edit 2:
Follow an image of my cmd
using this code:
@echo on
findstr /I /C:"Conexão falhou" WinSCP.log
echo %errorlevel%
pause