WinSCP script command unzip files automatically

Advertisement

stargazer99tang
Guest

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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

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.

Reply with quote

stargazer99tang
Joined:
Posts:
1

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.
  • private.zip (28.73 KB, Private file)
Description: Screenshot of files downloaded, WinSCP script and log files

Reply with quote

martin
Site Admin
martin avatar

Re: WinSCP script command unzip files automatically

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

Reply with quote

Advertisement

You can post new topics in this forum