You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
line count
About this tag
The line count tag on WindowsForum.com covers discussions about counting lines in text files using command-line tools on Windows. A recurring theme involves using the WC tool in batch scripts to obtain line, word, and character counts, and then handling that output for further processing, such as displaying it with the MSG command. Users troubleshoot issues with variable assignment and file paths when integrating line count results into scripts. The tag is relevant for Windows 10 users working with CMD.EXE and batch automation.
Hi!
I tried to send command output to variable.
I'm using is in Windows 10.1903 x64
I used syntax:
SET /P variable= | command
I used batch by context menu to get word, characters and lines count in text file using old WC tool (it's great).
First I used only copying output into clipboard by...