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

trailmug wrote:

Use -rawsettings compression=1 on the "open" command.. You'll need to upgrade to WinSCP 5, though, for it to work.

Thanks. Just adding a reference for this:
https://winscp.net/eng/docs/rawsettings
trailmug

Use -rawsettings compression=1 on the "open" command.. You'll need to upgrade to WinSCP 5, though, for it to work.
martin

Anonymous wrote:

Obviously, the FAQ does not answer the question. Would it not be more helpful to simply answer the question instead of repeatedly sending people someplace that doesn't have the answer? Unless you don't know the answer yourself?

It does, just read it properly.
Guest

martin wrote:


Once again, please read FAQ. If that does not help, come back.


Obviously, the FAQ does not answer the question. Would it not be more helpful to simply answer the question instead of repeatedly sending people someplace that doesn't have the answer? Unless you don't know the answer yourself?
martin

zoltix wrote:

How to active the compression in a batch?
I tried to put -C but ....Apparently is not working?

Once again, please read FAQ. If that does not help, come back.
zoltix

I have a similar problem ....
I look for in faq but I found nothing.

How to active the compression in a batch?
I tried to put -C but ....Apparently is not working?

In windows 2008,
I Have two scrips
file Down.bat :
                winscp.exe /console /script=i:\sftpupload\Getftpcommand.txt /log=i:\sftpupload\ftplog.txt


File: Getftpcommand.txt
option batch on

option confirm off
open sftp://XXXX:XXXXX@XXXXXXXXX:22 -hostkey="ssh-rsa 1024 71:b9:30:1d:0d:4b:01:a3:dd:86:bd:de:9d:34:90:76"
option transfer binary
Put I:\SFTPUpload\files\*.*
close
exit
SH2008

Re: How do I enable compress from the command line in Window

Hi,

For enable compression, we need to add in the '-C'. Right now my code is as below which using -b batch mode. May I know how to append the -C to enable compression?

-b Batch file userid '@' hostname.
martin

Re: How do I enable compress from the command line in Window

Setup a stored session in GUI, with compression enabled.
Use "open session_name" to open that session from the script.
sm8680

Re: How do I enable compress from the command line in Window

martin wrote:

It is described in the FAQ, see the link above.


I'm lost I was unable to figure it out based on the FAQ. For I'm using commands from this link https://winscp.net/eng/docs/scripting
martin

Re: How do I enable compress from the command line in Window

It is described in the FAQ, see the link above.
sm8680

Re: How do I enable compress from the command line in Window

martin wrote:

Do you mean SSH compression? Please read FAQ. If that does not help, come back.



Yes SSH compression. The text file has the sftp site, username, password, put command, close, exit etc.

I was unsure how to implement compression. Do you have an example of how to enable compression in a script such as mine? Thanks

Steve
martin

Re: How do I enable compress from the command line in Window

Do you mean SSH compression? Please read FAQ. If that does not help, come back.
sm8680

How do I enable compress from the command line in Windows?

"C:\Program Files\WinSCP\WinSCP.Com"
-script=C:\AssetLink\Notes\AssetLinkNotes.txt


Would I enable above via a setting or in my AssetLinkNotes.txt script? Please advise. thanks

Steve