Topic "Automatically compress files before download"

Author Message
swinghouse

Guest


Hi,

I'm trying to run the sample script from https://winscp.net/eng/docs/script_auto_compress_download, which illustrates how to automatically compress files before download, but I keep getting the same error.

This line:

Code:
call tar -czf /tmp/archive.tar.gz %2%


... results in the following error message:

Quote:
500 Syntax error, command unrecognized.
Syntax error, command unrecognized.


I've installed GnuWin on my Windows box in order to get the tar utility and have put the path to the GnuWin directory in my PATH variable, and I've confirmed that I can run tar from the commandline, but the error persists.

Any idea what I'm missing?

Thanks!

/Mattias
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Please read documentation:
https://winscp.net/eng/docs/remote_command

If that does not help, come back.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License