Use WinRAR in Windows Command Line

Source: Internet
Author: User

Due to the svn Server failure, when SVN needs to be restored, it is found that the files backed up with jar cannot be unopened and the files are damaged.
Fortunately, the hard disk is not damaged and can be recovered on another machine.

WinRAR is often used, but it is mostly used in the graphic interface. Can I use Windows commands?

An error occurred while trying:
C:/Documents and Settings/> WinRAR
'Winrar 'is not an internal or external command, nor a program or batch processing file that can be run.

 

Simple processing:

Right-click my computer, choose Properties> advanced> environment variables> system variables> New
Variable name: Path
Variable value: C:/program files/WinRAR;

-- The variable value is the installation path of WinRAR software.

 

The installation directory of WinRAR software is detailed.Usage: WinRAR. CHM

 

 

After the environment variables are set, run WinRAR again in the command line to find that it is OK.

C:/Documents and Settings/> WinRAR

Write a batch file and save it as svnbak. bat.

 

Echo ------- % Date :~ 0, 10% SV backup start --------------- <br/> D: <br/> Cd D:/svnbak <br/> WinRAR a-r SVN _ % Date :~ 0, 102.16.rar D:/SVN/*. * <br/> echo ---- % Date :~ % Backup ended ---------------- </P> <p>

 

Test the function, and the backup file can be opened normally. Add him to the scheduled task of windows.

 

 

Fortunately, this hard drive is not bad, so it will be too big if it is not troublesome.

 

Backup is not the key. The key is to have a verified reliable backup.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.