Place this code into a *.CMD file. Currently it is looking in e:\cfm for
*.cfm, you can change this as needed. Also the output file is c:\count.txt,
change as needed. Only works for NT and probably 2000.
Should make you look good!
Hope it helps...Adrian
**** BEGIN CMD FILE (dont include this line) ****
@echo off
set cd=
for /f "tokens=* delims= " %%? in (
'dir /a-d /b e:\cfm\*.cfm') do call :countlines %%?
goto :EOF
:countlines
set file=%*
if not defined cd set file=%file:~1%
for /f "tokens=* delims=" %%? in (
'type "e:\cfm\%file%"
^| find /v /c "$^&Z^@^!$"') do set /a rc=%%?
set /a rc-=1
echo>>c:\count.txt file e:\cfm\%file% has %rc% lines
goto :EOF
:EOF
**** END CMD FILE (dont include this line) ****
-----Original Message-----
From: Chris Norloff [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 21, 2000 7:25 AM
To: CF-Talk
Subject: Line count of 1600 files?
My supervisor would like a line count of all CF code in our project. That's
1,603 files - what's a reasonable way of getting a line count, or something
similar?
thanks,
Chris Norloff
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.