Re: WINSCP stuck at sending files via BAT file.
You have quotes wrong.
See https://winscp.net/eng/docs/commandline#syntax
Also it does not make sense to use
Or simply (as there are no spaces in the path):
See https://winscp.net/eng/docs/commandline#syntax
Also it does not make sense to use
call
to run WinSCP. Also the first argument to start
should be console window title.
start "title" winscp.com /command "open sftp://username:password@99.99.99.99/directory" "put -permissions=777 ""C:\Build\destination\ear\project.ear""" "close" "exit"
Or simply (as there are no spaces in the path):
start "title" winscp.com /command "open sftp://username:password@99.99.99.99/directory" "put -permissions=777 C:\Build\destination\ear\project.ear" "close" "exit"