Post a reply

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

martin

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.
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.
martin

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.
hendra

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'
LoancareHD

-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