Home > OS >  Using the command line in the bat batch decompress rar compressed package, the back of the command w
Using the command line in the bat batch decompress rar compressed package, the back of the command w

Time:10-02

I want to pass the bat script to automatically extract and override file:

Md: D \ rar \ AuxiliaryService
Start winrar X-ray ibck d: \ huangyaoqi \ AuxiliaryService zip d: \ rar \ AuxiliaryService
Xcopy D: \ rar \ AuxiliaryService D: \ test/s/e/h/I/y

Is this form above,
However, in the execution of the second line rar decompression is not yet complete, the script begins to execute down, will perform the replication of the third step,
Due to extract the unfinished, copy is empty, of course,
I find some rar command line, there are too many parameters, but also could not find helpful,
Help everybody to give directions, thank you.

CodePudding user response:

Refer to this:
http://www.jb51.net/article/79528.htm

CodePudding user response:

reference 1st floor chang_bo response:
reference this:
http://www.jb51.net/article/79528.htm


My question should not delay problem,
After all, sometimes, some package is very big still, setting time, extract can not finish,

CodePudding user response:

Start/wait, run a program, and wait for the end of it,

CodePudding user response:

Winrar, moreover, is with the GUI program, do not know to have this effect, you can test, compared with winrar. Exe, in batch more recommend rar. Exe, the command line version of rar,

CodePudding user response:

The
reference 3 floor Runnerchin response:
start/wait, run a program, and waiting for it to end,


I'm in the second line command add a "/wait" can?
Tomorrow I try,

CodePudding user response:

reference 4 floor Runnerchin response:
in addition, winrar is with the GUI program, do not know to have this effect, you can test, compared with winrar. Exe, in batch more recommend rar. Exe, the command line version of rar,


Then I can directly replace the command "rar. Exe"?

CodePudding user response:

Rar. Exe seems only. Rar file, can't be other format, although winrar is possible, can use batch processing is winrar. Exe,

Start waiting for problem, one is can use/wait friend said above parameters; Actually directly using winrar. Exe can, if it is not in the path set, the path to write all the such as "c: \ program files \ winrar \ winrar exe" x...

CodePudding user response:

Md: D \ rar \ AuxiliaryService
Start winrar x/wait d: \ huangyaoqi \ AuxiliaryService zip d: \ rar \ AuxiliaryService
Xcopy D: \ rar \ AuxiliaryService D: \ test/s/e/h/I/y

Add/wait parameters, the result is the same way,

Extract the question now is not the end, began to perform 3 lines of command,

CodePudding user response:

You misplaced/wait, this is for the start parameter, not for winrar: start ""/wait winrar x...

CodePudding user response:

refer to the second floor YuriGagarin response:
Quote: refer to 1st floor chang_bo response:

Refer to this:
http://www.jb51.net/article/79528.htm


My question should not delay problem,
After all, sometimes, some package is very big still, setting time, finish can not unzip,


The biggest package have how old?

CodePudding user response:

The biggest package has 70 m more

CodePudding user response:

Zara, 9/f,
reference response:
/wait you put the wrong place, this is for the parameters of the start, not for winrar: start ""/wait winrar x...


OK, thank you,
So, if there is no problem,
I'll test the,
Point of view, I am don't have to consider to make the Windows version of the Jenkins,

CodePudding user response:

11 references YuriGagarin response:
the biggest package has 70 m more


Inside the package if it is not a large number of small files to test out the actual decompression time, and then with the appropriate redundancy set delay is feasible

CodePudding user response:

reference 13 floor chang_bo reply:
Quote: reference 11 floor YuriGagarin response:

The biggest package has 70 m more


Compressed package if not a lot of small files to test out the actual decompression time, and then with the appropriate redundancy set time delay is feasible


Before you say, I did not focus on the size of the package at ordinary times, I'll pay attention to recently, after all, one of which is to solve thinking,
  • Related