Post a reply

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: I cant get the script to do anything

So what does it do? What does it output? Please attach a full session log file showing the problem (using the latest version of WinSCP).

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.
alski

I cant get the script to do anything

I installed WinSCP and did a file transfer manually. I generated the code then created a .bat file in windows. When I run the batch file as administrator it never uploads the file.
open sftp://user:IO%218d%26yE52ADk7@000.000.000.000/ -hostkey="ecdsa-sha2-nistp521 521 ay91NZcff6C9GTI+HzlU/Wgp6uPgSWObhwcYaGPiSVI="
 
lcd Q:\Users\user\Certify
cd /External_Folder
 
put *
 
exit
 
# Execute the script using a command like:
# "C:\Users\rmcadmin\AppData\Local\Programs\WinSCP\WinSCP.exe" /log="C:\writable\path\to\log\WinSCP.log" /ini=nul /script="C:\path\to\script\script.txt"