Unknown command 'ÿ_o'

Advertisement

raimiansch
Joined:
Posts:
2

Unknown command 'ÿ_o'

Hello together!

I want to automate file transfer with winscp. But I always get the error
Unknown command 'ÿ_o'
I use following command:
.\WinSCP.com /script=scp.txt
The content of scp.txt is:
option batch on
option confirm off
open nabackup@x9149.spar.local.at
bin
put C:\adm\VMbackup\VMware-ESX-aecpitsp01
put C:\adm\VMbackup\VMware-ESX-atsl-dmgr01
put C:\adm\VMbackup\VMware-ESX-atsl-ecpa02
exit
The output is:
C:\Program Files (x86)\WinSCP> .\WinSCP.com /script=scp.txt
Unknown command 'ÿ_o'.
winscp>
When I open the winscp console (winscp.com) and try each command per hand, it works very fine.

I use the version
C:\Program Files (x86)\WinSCP>WinSCP.com /h
WinSCP, Version 4.3.2 (Build 1201)
Copyright (c) 2000-2011 Martin Prikryl
Can anybody help me please?

Thanks
Rainer

Reply with quote

Advertisement

raimiansch
Joined:
Posts:
2

Re: Unknown command 'ÿ_o'

Thank you for your help.

I used within powershell following code to create the text file.
echo "option batch on" >>scpcmd
echo "option confirm off" >>scpcmd
echo "open nabackup@x9149.spar.local.at" >>scpcmd
..
Now I use set-content instead of >>scpcmd and it works fine.

Thank you
Rainer

Reply with quote

Advertisement

You can post new topics in this forum