Running WinRAR in a Command Line Window

This section provides a tutorial example on how to run WinRAR in a command line window.

WinRAR also support command line operations. This is important to allow users to incorporate WinRAR commands into automated scripts. Here is a simple script I used to backup a directory, backup.bat:

@rem backup.bat
@rem Usage: backup directory zipfile password

\local\winrar\winrar a -afzip -r -p%3 %2.zip %1\*.*

My restore script is also very simple, restore.bat:

@rem restore.bat
@rem Usage: restore zipfile password

\local\winrar\winrar x -p%2 %1.zip .\

Note that:

For complete description of the command line interface of WinRAR, see the WinRAR help document.

Table of Contents

 About This Book

 Introduction to Microsoft Windows

 Introduction to Windows Explorer

 Introduction to Internet Explorer

 "Paint" Program and Computer Graphics

 GIMP - GNU Image Manipulation Program

 JPEG Image File Format Quality and Size

 GIF Image File Format and Transparent Background

 "WinZip" - ZIP File Compression Tool

"WinRAR" - RAR and ZIP File Compression Tool

 What Is WinRAR

 Downloading and Installing WinRAR 3.42

 Adding Files to a New RAR File

 Extracting All Files from a RAR File

 Setting Passwords in RAR Files

 Creating Multi-Volume RAR Files

 Setting Windows Explorer Context Menu

 Compressing Files with ZIP Format

Running WinRAR in a Command Line Window

 FTP Server, Client and Commands

 "FileZilla" - Free FTP Client and Server

 Web Server Log Files and Analysis Tool - "Analog"

 Spyware Adware Detection and Removal

 IE Addon Program Listing and Removal

 Vundo (VirtuMonde/VirtuMundo) - vtsts.dll Removal

 Trojan and Malware "Puper" Description and Removal

 VSToolbar (VSAdd-in.dll) - Description and Removal

 Spybot - Spyware Blocker, Detection and Removal

 Setting Up and Using Crossover Cable Network

 Home Network Gateway - DSL Modem/Wireless Router

 Windows Task Manager - The System Performance Tool

 "tasklist" Command Line Tool to List Process Information

 "msconfig" - System Configuration Tool

 Configuring and Managing System Services

 Windows Registry Key and Value Management Tools

 Startup Programs Removal for Better System Performance

 Winsock - Windows Sockets API

 Java on Windows

 Glossary of Terms

 Outdated Tutorials

 References

 Full Version in PDF/ePUB