Using WinRAR in Windows command line

Source: Internet
Author: User
Tags svn

Due to SVN server failure, the need to restore SVN found that the original use of the jar backup file is not open, file corruption.
Fortunately, the hard drive is not damaged and can be recovered on other machines.

Think of often used to winrar, but mostly in the graphical interface. Windows commands can not be used.

I tried it, and it made a mistake:
C:/Documents and Settings/>winrar
' WinRAR ' is not an internal or external command, nor a running program or batch file.

Simply deal with:


My Computer right Key properties-"advanced-" Environment variables-"System Variables-" new
Variable Name: path
Variable value: C:/Program Files/winrar;

--The variable value is the WinRAR software installation path

In the WinRAR Software installation directory has a more detailed instructions: Winrar.chm

After setting the environment variable, the command line executes again winrar found OK.

C:/Documents and Settings/>winrar

Also write a batch file, save as Svnbak.bat

echo-------%date:~0,10%sv backup starts---------------d:cd d:/svnbak winrar a-r svn_%date:~0,10%.rar d:/svn/*.* echo----%date: ~0,10% Backup Ends------------------

Test a good, and back up the file can be opened normally. Put him in the scheduled task of Windows, fix it.

Fortunately, the hard drive is not bad, or the trouble is big.

Backups are not critical, and the key is to have validated, reliable backups.

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.