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: 31 Jul 2011 by prikryl
 

Search Documentation

This page

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

Associations

Kyplex Cloud Security Seal - Click for Verification

Site design by Black Gate