Note that the documentation covers new features and changes in beta releases 4.2 through 4.2.4 already.

Why the switches do not work in my script?

The switches for script commands were introduced in 4.1 beta. Make sure you are using the latest version of WinSCP.

Older versions of WinSCP were not aware of switches, hence they treat them as regular parameters, mostly as names of files. As consequence you will be getting confusing errors such as:

  • File or folder ‘-delete’ does not exist;
  • Too many parameters;
  • etc.
 
  faq_script_switch.txt · Last modified: 17 Feb 2009 by prikryl
 

Search

This page

Donate

Donate via PayPal

Associations

Site design by Black Gate