LoancareHD
Joined:
Posts:
2
Location:
Tidewater Virginia

When trying to connect to a remote user and use the -neweronly switch we receive the message "Unknown switch 'neweronly'.

The script command is

option echo off

option batch on

option confirm off

option transfer auto

option batch continue

option batch on

option transfer binary

option exclude *.tmp

close

exit

martin
Joined:
Posts:
33,710
Location:
Prague, Czechia

hendra
Guest

my script was "get -neweronly /path/* c:\file\" "exit"
but still got the same error. Unknown switch 'neweronlyt'

martin
Joined:
Posts:
33,710
Location:
Prague, Czechia

You will hardly get an error referring to neweronlyt for a command that does not even contain that keyword. The problem must be elsewhere.

To generate the session log file, use /log=C:\path\to\winscp.log command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Guest

martin wrote:

You will hardly get an error referring to neweronlyt for a command that does not even contain that keyword. The problem must be elsewhere.
To generate the session log file, use /log=C:\path\to\winscp.log command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
I have asked for a log from the latest version of WinSCP. You are using WinSCP 5.1.4, which is over 5 years old and does not support -neweronly.