Topic "Custom command - zip and download"

Author Message
peterhammer
[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,
Federico.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
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.

See https://winscp.net/eng/docs/guide_custom_commands_automation

You basically need script like this:
https://winscp.net/eng/docs/library_example_zip_and_upload
Except you have to create the ZIP remotely (using the Session.ExecuteCommand) and download it (using the Session.GetFiles)
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