It’s not built into Windows, but it’s in the Resource Kit Tools as COMPRESS
,
C:\>compress /?
Syntax:
COMPRESS [-R] [-D] [-S] [ -Z | -ZX ] Source Destination
COMPRESS -R [-D] [-S] [ -Z | -ZX ] Source [Destination]
Description:
Compresses one or more files.
Parameter List:
-R Rename compressed files.
-D Update compressed files only if out of date.
-S Suppress copyright information.
-ZX LZX compression. This is default compression.
-Z MS-ZIP compression.
Source Source file specification. Wildcards may be
used.
Destination Destination file | path specification.
Destination may be a directory. If Source is
multiple files and -r is not specified,
Destination must be a directory.
Examples:
COMPRESS temp.txt compressed.txt
COMPRESS -R *.*
COMPRESS -R *.exe *.dll compressed_dir
Related Posts:
- What’s the command-line utility in Windows to do a reverse DNS look-up?
- Useful Command-line Commands on Windows
- Resolve host name from IP address
- Run a .bat file in a scheduled task without a window
- How can I connect to a Windows server using a Command Line Interface? (CLI)
- What is the Windows equivalent of Unix “whoami” command?
- What exactly are DLL files, and how do they work?
- The application was unable to start correctly (0xc000007b)
- ‘npm’ is not recognized as internal or external command, operable program or batch file
- Difference between xcopy and robocopy
- The filename, directory name, or volume label syntax is incorrect inside batch
- Bat file to run a .exe at the command prompt
- How can I open Java .class files in a human-readable way?
- Opening a remote machine’s Windows C drive
- Why does CreateProcess give error 193 (%1 is not a valid Win32 app)
- Taskkill /f doesn’t kill a process
- Bluescreen on windows 10 after using android emulator
- XCOPY: Overwrite all without prompt in BATCH
- How to install and run the Nmap program through Cygwin in Windows?
- How to compile C program on command line using MinGW?
- All links in my site start with localhost?
- WordPress database setup Windows 2016 IIS
- How do you find what process is holding a file open in Windows?
- How do I tell Git for Windows where to find my private RSA key?
- How to send ctrl+alt+del using Remote Desktop?
- How do you add a Windows environment variable without rebooting?
- hosts file ignored, how to troubleshoot?
- How to refresh hosts file without rebooting
- How to sleep in a batch file?
- Command line to list users in a Windows Active Directory group?
- What is Active Directory Domain Services and how does it work?
- Is there a global, persistent CMD history?
- How do I diff two text files in Windows Powershell?
- In Windows, using the command line, how do you check if a remote port is open?
- Can you run Docker natively on the new Windows 10 (Ubuntu) bash userspace?
- How does CTRL-ALT-DEL to log in make Windows more secure?
- How to check if a port is blocked on a Windows machine?
- How do I force sync the time on Windows Workstation or Server?
- How do I create a symbolic link in Windows?
- Best practice: Should I always install a fresh OS for new employees?
- How can I tell what version of IIS is installed?
- Where can I find data stored by a Windows Service running as “Local System Account”?
- How to zip/unzip files in Powershell?
- What’s the reverse DNS command line utility?
- Windows server last reboot time
- Windows Active Directory naming best practices?
- Why hasn’t rsync caught on in the Windows world? [closed]
- Boot and Install Windows from a USB thumb drive
- How to fix PuTTY showing garbled characters? [closed]
- How to delete cached temporarily credentials for a network share on a Windows machine without rebooting or logging off [duplicate]
- How do you free up a port being held open by dead process?
- How to configure a Windows machine to allow file sharing with a DNS alias
- Alternatives to Splunk?
- ‘pip’ is not recognized as an internal or external command
- Difference between masm32 and masm?
- How to list files in windows using command prompt (cmd). I’ve tried using ‘ ls ‘ as in Linux but it shows an error?
- Ignoring directories in Git repositories on Windows
- C compiler for Windows?
- How can you find out which process is listening on a TCP or UDP port on Windows?
- Filename too long in Git for Windows
- How to remove anaconda from windows completely?
- How to solve “The directory is not empty” error when running rmdir command in a batch script?
- How can I find and run the keytool
- error: Unable to find vcvarsall.bat
- VC++ fatal error LNK1168: cannot open filename.exe for writing
- How can I convert a .jar to an .exe?
- How to jump in Unity 3d?
- Python command not working in command prompt
- Command line for looking at specific port
- How to uninstall a Windows Service when there is no executable for it left on the system?
- No Module Named ‘_pywrap_tensorflow_internal’
- UnicodeDecodeError: ‘charmap’ codec can’t decode byte X in position Y: character maps to
- Create PDF file using PHP
- python pip on Windows – command ‘cl.exe’ failed
- Merge / convert multiple PDF files into one PDF
- What is Windows Fabric and how to host services in it?
- scp from Linux to Windows
- How to open an elevated cmd using command line for Windows?
- Windows 7 – ‘make’ is not recognized as an internal or external command, operable program or batch file
- ImportError: No module named cv2
- How to get the text cursor position in Windows?
- What is the difference between tar and zip?
- How do I get the current username in Windows PowerShell?
- HyperV is not available on Home editions
- Posting with slug “favicon” gets redirected
- WP Cli will not execute on Windows
- Enabling compression in .htaccess file is causing 500 internal error
- Offline WordPress Application
- Disable all resizing and compression
- ERR_CONTENT_DECODING_FAILED: How to fully delete gzip compression plugins?
- “load-scripts.php” hangs and times out when plupload is requested
- Advice on image heavy site, compression and slow page loads
- Blurry images when using add_image_size with crop
- WordPress on XAMPP over my home network [closed]
- Having an issue in compressing Images in wordpress site
- Does WordPress Support Using Named Pipes on the Windows Operating System?
- No compression occurs on my jpegs after adding jpeg_quality hook to my functions.php file
- Run Oracle SQL script and exit from sqlplus.exe via command prompt
- Show full process name in top
- How can I get diff to show only added and deleted lines? If diff can’t do it, what tool can?