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.
word count
About this tag
The word count tag on WindowsForum.com covers discussions about counting words, characters, and lines in text files using command-line tools like WC in Windows. A thread shows a user trying to capture WC output into a variable in a batch script on Windows 10, using SET /P and clip, and then display it with MSG. The content focuses on troubleshooting command output handling, file paths, and batch scripting for word count tasks. This tag is relevant for users seeking help with text file statistics via Windows command prompt or batch files.
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...