Topic "WinSCP script command unzip files automatically"

Author Message
stargazer99tang

Guest


Hi,

I just downloaded your latest WinSCP version on this website. I'm trying to perform batch files download over SFTP with it. I notice that the zip files I download will get unzip automatically. May I know why this is so and how I can prevent this from happening?

Here's a snippet of the script I use:

============================================
option batch on

option confirm off

option transfer binary

open user:password@server

get source destination

close

exit

=============================================

All source files are in .zip format. There are no failures in transfer except that I don't need WinSCP.com to unzip my files automatically.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
WinSCP does not extract any archives. It must be your server that is doing this.

Please attach a full log file showing the problem (using the latest version of WinSCP).

To generate log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
stargazer99tang
[View user's profile]

Joined: 2015-11-23
Posts: 1
Hi,

I'm using WinSCP 5.7.6 (Build 5874). I'm attaching the download script and logs as private attachment for your perusal.
Screenshot of the download result attached as well.
private.zip (28.73 KB) Private file

Description: Screenshot of files downloaded, WinSCP script and log files

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
I need a session log file (/log=session.log), not XML log.
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