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

Ooker

Re: Simple uploading script doesn't run

Thanks. This works in cmd:
"C:\Program Files (x86)\WinSCP\WinSCP.exe" /log="D:\Dropbox\Config\WinSCP.log" /ini=nul /script=winscp.txt
martin

Re: Simple uploading script doesn't run

Your command-line is wrong. It should be:
/script=winscp.txt

And no option confirm off – that might go into the winscp.txt, but it's default, so it would be redundant.

Also, use winscp.com for scripting:
https://winscp.net/eng/docs/executables
Ooker

Simple uploading script doesn't run

I run this code but the files aren't uploaded. cmd doesn't say anything. Do you know why is that?
"C:\Program Files (x86)\WinSCP\WinSCP.exe" /log="D:\Dropbox\Config\WinSCP.log" /ini=nul /script winscp.txt option confirm off

My file:
open ftp://xnqucuhr5aza:XXX@107.161.23.124/ 
lcd D:\GitHub\neovis2
cd "/public_html/files/Một hệ thống niềm tin"
put "A belief network.html"
put config.js
exit