WinSCP3.com /command (etc...)
Hi,
I managed to get this script file working:
I'd like to do the exact same thing, except using the winscp.com /command format. When I try this:
it prompts me for a username.
When I try this:
it connects to the server ok, but doesn't execute any of my specified commands.
Can anyone help?
I'd rather not use a script file as these commands will be included in a make system, and I'd rather not have to write a script to write an scp script...
Thanks - Dave.
I managed to get this script file working:
option batch on option confirm off open <username>:<password>@<domain> cd /home/public_html/imode/ option transfer binary put example.txt close exit
I'd like to do the exact same thing, except using the winscp.com /command format. When I try this:
winscp3.com /command 'option batch on' 'option confirm off' 'open <username>:<password>@<domain>' 'cd /home/public_html/imode/' 'option transfer binary' 'put example.txt' close exit
it prompts me for a username.
When I try this:
winscp3.com <username>:<password>@<domain> /command 'option batch on' 'option confirm off' 'cd /home/public_html/imode/' 'option transfer binary' 'put example.txt' close exit
it connects to the server ok, but doesn't execute any of my specified commands.
Can anyone help?
I'd rather not use a script file as these commands will be included in a make system, and I'd rather not have to write a script to write an scp script...
Thanks - Dave.