79787674

Date: 2025-10-10 20:48:13
Score: 6.5 🚩
Natty:
Report link

I have a similar issue. My script logs in but will not synch the directories?

Here is what I have so far as my script.

#Building A Report Move Script

#Open Session
@echo on

"C:\Program Files (x86)\WinSCP\WinSCP.com" ^
  /log="C:\writable\path\to\log\WinSCP.log" /ini=nul ^
  /command ^
    "open sftp://SBCadmin:[email protected]/ -hostkey=""ssh-ed25519 255 otNIccAuAOKu5/+6IGTXGzcuIcw4Kf1PO/OJA7OLUWI""" ^
    "synchronize local "D:\SFTPRoot\BldgA" "/home/niagara/stations/LincolnPlaza_Bldg_A/shared/AutoCx"" ^
    "exit"

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

Any ideas with the synch line?

Thanks....

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): Any ideas
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I have a similar issue
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Stephen