I cant get the script to do anything

Advertisement

alski
Joined:
Posts:
1
Location:
US

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"

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,507
Location:
Prague, Czechia

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.

Reply with quote

Advertisement

You can post new topics in this forum