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

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

Taidot: DOS, Shell Script

Tietoa asiakkaasta:
( 49 arvostelua ) Lyndhurst, United States

Projektin tunnus: #13916054

Myönnetty käyttäjälle:


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 1 päivässä
(4 Arvostelua)

2 freelanceria on tarjonnut keskimäärin $18 tähän työhön


Dear Hiring Manager, I have read your JOB post and I got it what you want to develop.I HAVE GOOD EXPERIENCE TO WORKING WITH FOLLOWING SKILLS like php, html, SEO, mysql, MVC,SQL server,JQUERY,API a Lisää

$20 USD 1 päivässä
(1 arvostelu)