Options

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

Ian Mac

Hi Martin
thanks for the reposnse and sorry about the delay in getting back to you. I actually solved the issue i had " " in the wrong place!!

Thanks
martin

To generate the session log file, use /log=C:\path\to\winscp.log command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
Ian Mac
Hi all couple of additional 1. I have now for the base script to work in Windows 2019 but as soon as i add
open sftp://<Username>@Ipaddress/ -hostkey="ssh-rsa 2048 blahblah=" -private key="path filename.ppk" -passphrase="xxxxxxxx"

the file stops working....
Ian Mac

"C:\Program Files (x86)\WinSCP\WinSCP.exe" /log="C:\concur\log\WinSCP.log" /ini=nul /script="c:\concur\sftp_concur.txt"
open sftp://<username>:passwd@IPAddress/ -hostkey="ssh-rsa 2048 blahblah"