Sedang Disiapkan

DOS batch file set variable (number of files in a zip)

Job Description:

the output of UNZIP on the final line is for example "5 files".

Been trying to get the result of "5" via "set NUMFILES =" using UNIX utilities for DOS such as grep and awk. Perhaps there is another way to do it. What I tried was:

set NUMFILES=unzip -l [url removed, login to view] | grep files | awk '{print $2}'

Do you have a way to get number of files in a zip file to a variable

looking for a low cost solution and price and fast result is what is hopped for . under $20

Kemahiran: DOS, Shell Script

Tentang Klien:
( 49 ulasan ) Lyndhurst, United States

ID Projek: #13916054

Dianugerahkan kepada:

jperusan

There are several solution for this. Is it really DOS in question or Windows command prompt? I can give solution for both, but the right one depends on your answer.

$15 USD dalam sehari
(4 Ulasan)
2.1