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

swinghouse

Automatically compress files before download

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:

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


... results in the following error message:

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