-neweronly Switch

Advertisement

LoancareHD
Joined:
Posts:
2
Location:
Tidewater Virginia

-neweronly Switch

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

put -preservetime -neweronly "F:\SFT\Reports\folder\Reports\*.*" "/Inbound/Reports/"

close

exit

Reply with quote

Advertisement

hendra
Guest

Re: -neweronly Switch

i have install the latest version of winscp (5.15.2),
my script was "get -neweronly /path/* c:\file\" "exit"
but still got the same error. Unknown switch 'neweronlyt'

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,468
Location:
Prague, Czechia

Re: -neweronly Switch

You will hardly get an error referring to neweronlyt for a command that does not even contain that keyword. The problem must be elsewhere.
Please attach a full session log file showing the problem (using the latest version of WinSCP).

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.

Reply with quote

Guest

Re: -neweronly Switch

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.
Please attach a full session log file showing the problem (using the latest version of WinSCP).

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.
  • winscp.log (40.63 KB, Private file)
Description: here is log file

Reply with quote

Advertisement

martin
Site Admin
martin avatar

Re: -neweronly Switch

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.

Reply with quote

Advertisement

You can post new topics in this forum