Line Counter

Version 1.6 (February 2016)
© 2005-2016, Noël DANJOU
All rights reserved.

Table of Contents
Welcome
Package Contents
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#, Arduino, Java, JavaScript and PHP source files. The output can be redirected to a text file.

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

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

February 12, 2016 - Version 1.6 (build 21.5)

  • adds support for .ino and .pde files (Arduino).
  • removes VC++ runtime dependency.

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:

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

Website: noeld.com