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

raimiansch

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
martin

Re: Unknown command 'ÿ_o'

Make sure the script file is saved using UTF8 encoding.
raimiansch

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