Topic "Custom command - zip and download"

Author Message
[View user's profile]

Joined: 2016-08-05
Posts: 1
Location: Uruguay
Hi, i would like to make a custom command to zip and download a file in one step.

The zip part is already done, but i dont know if i can append the download instruction...

Any suggestion?

Best regards,
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24759
Location: Prague, Czechia
You would have to write a script that opens its own session (to the same host), creates the ZIP and downloads it. The script can also refresh WinSCP GUI file panel when it finishes.


You basically need script like this:
Except you have to create the ZIP remotely (using the Session.ExecuteCommand) and download it (using the Session.GetFiles)

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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License