Discussion:
Compter nombre de lignes
(trop ancien pour répondre)
Davidoo
2007-03-19 15:41:06 UTC
Permalink
Bonjour
Dans un script .bat, je cherche à compter les lignes d'un fichier log.
Merci pour votre aide...
F. Dunoyer [MVP]
2007-03-19 16:23:09 UTC
Permalink
Post by Davidoo
Bonjour
Dans un script .bat, je cherche à compter les lignes d'un fichier log.
Merci pour votre aide...
C'est plutot un probleme de script
mais avant de rentrer dans le script vbs ou autre
c'est pour en faire quoi?
--
François Dunoyer [MVP Windows Server / Security]
Des liens sur la sécurisation des systèmes Windows
http://fds.mvps.org/ta/Liens.htm
Site perso : http://www.fdunoyer.net
Th.A.C
2007-03-19 17:45:15 UTC
Permalink
Post by Davidoo
Bonjour
Dans un script .bat, je cherche à compter les lignes d'un fichier log.
Merci pour votre aide...
un petit truc dans ce genre... (ca doit pas être très rapide)

-------------------------------------
@echo off

setlocal enabledelayedexpansion

set compteur=0

FOR /F "delims=§" %%i in (c:\boot.ini) do (
set /A compteur=!compteur!+1
echo ligne !compteur! : %%i
)
echo.
echo !compteur! lignes lues

-------------------------------------
Davidoo
2007-03-20 06:42:05 UTC
Permalink
NI-CKEL !!
Merci d'avoir répondu précisément à ma question (qui elle aussi était
précise ;-) !
Post by Th.A.C
Post by Davidoo
Bonjour
Dans un script .bat, je cherche à compter les lignes d'un fichier log.
Merci pour votre aide...
un petit truc dans ce genre... (ca doit pas être très rapide)
-------------------------------------
@echo off
setlocal enabledelayedexpansion
set compteur=0
FOR /F "delims=§" %%i in (c:\boot.ini) do (
set /A compteur=!compteur!+1
echo ligne !compteur! : %%i
)
echo.
echo !compteur! lignes lues
-------------------------------------
tom_willpa
2010-05-05 05:50:04 UTC
Permalink
high quality Soccer jerseys NBA Jersey tracksuit and jackets, GHD
hairstraightener supplier from www.willpa.com

Are you a Retail businessman who bother by the purchase price? China
Cheapest TOP wholesale website can help you

we are specialize in replica sport goods manufacturing in china, we can
offer you all kinds of soccer jersey, NBA jersey,shoes and so on. they are
the best brand replica goods whih are look the same as the original goods.
excellent quality and steady supply for them. we have been marketed in Europe
and American for 3 year. all the goods we offer are AAA quality. our soccer
jersey are Thailand style. If any goods you buy from my company have problem,
we will refund or resend them again. Most of ourProducts have no minimum
order requirements,soyou can shop retail goods at wholesale prices. if you
can buy more than 300usd. We offer free shipping. The more you buy the more
discount for you.

National soccer jerseys: http://www.willpa.com
Club soccer jerseys: http://www.willpa.com
NBA Jerseys: http://www.willpa.com
T-shirt and shirt: http://www.willpa.com
Tracksuit: http://www.willpa.com
Hoody & Jackets: http://www.willpa.com
UGG boots: http://www.willpa.com
Hair style: http://www.willpa.com
shopping Index: http://www.willpa.com

EMS shipping. 7days arrive, paypal accept

want more information pls contact us or check our website: www.willpa.com
Continuer la lecture sur narkive:
Loading...