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

Advertisement

sm8680
Joined:
Posts:
3
Location:
Pittsburgh, PA

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
27,226
Location:
Prague, Czechia

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.
_________________
Martin Prikryl

Reply with quote

sm8680
Joined:
Posts:
3
Location:
Pittsburgh, PA

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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,226
Location:
Prague, Czechia

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

It is described in the FAQ, see the link above.
_________________
Martin Prikryl

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,226
Location:
Prague, Czechia

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.
_________________
Martin Prikryl

Reply with quote

SH2008
Guest

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.

Reply with quote

zoltix
Guest

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    

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,226
Location:
Prague, Czechia

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.
_________________
Martin Prikryl

Reply with quote

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?

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,226
Location:
Prague, Czechia

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.
_________________
Martin Prikryl

Reply with quote

trailmug
Guest

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

Reply with quote

Advertisement

You can post new topics in this forum