Line Counter

Version 1.5 (May 2011)
© 2005-2011, Noël DANJOU
All rights reserved.

Table of Contents
Welcome
Package Content
Syntax
Return Codes (ERRORLEVEL)
History
Latest Version
Redistribution
Contact Details

 


Welcome

Line Counter is a command-line tool for software developers. It reports the total number of lines of code and comment lines in C, C++, C#, Java, JavaScript and PHP source files. The output may be redirected to a text file.

Note: this version is Unicode only that means that it will only run in Windows XP and later. Windows 98, ME and 2000 are not supported anymore.

 


Package Content

The package is provided as a compressed (zip) archive that holds a few files. The included files are described in the table below.

File Description
lcounter.exe The Line Counter program.
readme.htm This file.
msvcr100.dll * Microsoft C Runtime Library.

* These files are not needed if the Microsoft Visual C++ 2010 Redistributable Package is installed on your system.


Syntax

Line Counter features many parameters, for a whole list of the supported parameters and a description, type the following command in a Command Prompt:

lcounter /?

Examples:


Return Codes (ERRORLEVEL)

When Line Counter is used in a batch file, you can use ERRORLEVEL to check the completion code returned by the program. The possible return codes are listed in the table below.

Code Description
0 Success.
1 Syntax error or help/registration information displayed.
2 System error.

History

May 23, 2011 - Version 1.5 (build 20.1)

  • fixes an issue that could lead to invalid reported durations.
  • improves Microsoft SDL compliance.

January 11, 2010 - Version 1.4 (build 18.1)

  • Quick fix for broken /display parameter.

December 23, 2009 - Version 1.4 (build 17.3)

  • UNICODE version only.
  • adds support for extended-length paths (up to 32767 characters).

December 5, 2005 - Version 1.3 (build 11.2)

  • reference build.

Latest Version

The latest version of Line Counter is always available for download from this address:

http://noeld.com/programs.asp?cat=misc#lcounter


Redistribution

Computer magazine publishers are welcome to redistribute the application as-is on their complimentary or monthly CDs. Any other redistribution of the application with commercial products is strictly forbidden without my written permission. Please contact me for a license agreement (see Contact Details).


Contact Details

E-mail: webmaster@noeld.com

WWW: http://noeld.com