Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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

martin

Re: WinSCP script command unzip files automatically

I need a session log file (/log=session.log), not XML log.
stargazer99tang

Re: WinSCP script command unzip files automatically

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.
martin

Re: WinSCP script command unzip files automatically

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

WinSCP script command unzip files automatically

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.