Diagnosis or Status of a service
Hello, I'm working on a project of automation that uses Factorytalk VBA and I was requested to consume an FTP server. Well I scripted everything and it works just fine but I am having a big trouble now... I need to get a Diagnosis of the server to check if it's online or not, like some value for me to show inside de VBA code. Is there anyway to do it?
I'll let the script down here, just in case it is needed, it's basically the script done by WinSCP, just a few changes, it is a Batch (.bat) file:
I'll let the script down here, just in case it is needed, it's basically the script done by WinSCP, just a few changes, it is a Batch (.bat) file:
@echo off "C:\Program Files (x86)\WinSCP\WinSCP.com" ^ /log="C:\Users\Administrador\AppData\Local\Temp\CANT SHOW THIS" /ini=nul ^ /command ^ "open ftp:CANT SHOW THIS EITHER/" ^ "lcd C:\Users\Public\Documents" ^ "cd /" ^ "put Envio" ^ "cd /Envio" ^ "put -delete Envio\*" ^ "exit" set WINSCP_RESULT=%ERRORLEVEL% if %WINSCP_RESULT% equ 0 ( echo Success ) else ( echo Error ) exit /b %WINSCP_RESULT%