Bacth File Can't Run

Advertisement

rommy
Joined:
Posts:
2
Location:
Indonesia

Bacth File Can't Run

(admin note: Sorry, I've deleted your post by mistake. Though I had a copy of the batch file, so I'm restoring at least that)

@echo off

"C:\Program Files (x86)\WinSCP\WinSCP.com" ^
/log="F:\Backup\WinSCP.log" /ini=nul ^
/command ^
"open sftp://fiberone:Fiberone20%%215@172.17.30.12/ -hostkey=""ssh-rsa 3072 nV1bIT+VXb0DGmUe7BY4Yr75D2A4Fh+WyjszJjw4Yz4=""" ^
"synchronize local F:\Backup /FiberOne/Computer Vision/Shapefile/Landuse/BAS" ^
"exit"

set WINSCP_RESULT=%ERRORLEVEL%
if %WINSCP_RESULT% equ 0 (
echo Success
) else (
echo Error
)

exit /b %WINSCP_RESULT%

Reply with quote E-mail

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: Bacth File Can't Run

The script looks good. If it does not work for you, we need to know what exactly fails, what error do you get, and a log file.

Reply with quote

Advertisement

You can post new topics in this forum