Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Script: Exit code: 1

The command-line should be:
C:\Program Files (x86)\WinSCP>WinSCP.exe /log=c:\temp\winscp.log /command "open sftp://testuser:Pa%24%24word@PRD-DiscrptsOTS/ -hostkey=""ssh-ed25519 255 G1cKyAeALo4n+XxbA82L8Q+tMVNZXVentxavvnVqoho""" "put ""c:\Temp\test SFTP file.txt"" /C:/Users/testuser/Documents/*.*"

See https://winscp.net/eng/docs/commandline#syntax

WinSCP GUI can also generate a working command-line for you:
https://winscp.net/eng/docs/guide_automation#generating
Joe S.

Script: Exit code: 1

I'm having problems testing the simplest code. Just trying to SFTP a file from my pc to a Windows 2022 standard server. Also trying on the same server to use WinSCP to test SFTP to get the file from one folder to another. Both results yield 'Exit code: 1'
Attached is the command that I'm using and the log.