Topic "Scripting AutoZip to existing folder"

Author Message


Hi all,
Having read the documentation, I still can not figure out the correct syntax to zip files on the remote server. I connect with stfp and my batch file runs fine...until I ask it to zip files.
I get the "Unknown command 'zip'" error.
What is the exact syntax to be used within a batch file?
Here's what I have:
zip -r /target directory/
I have also tried /zip
and /command zip

Yes, I'm new to all of this, so exact syntax would be appreciated.
My overall goal is to place files that exist on the remote server into a zip folder, automatically. My client wants to download one zip file instead 1,000 unzipped ones.
Thanks in advance!
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27106
Location: Prague, Czechia
You need to use call command like call zip ...

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License