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.
text count
About this tag
The text count tag on WindowsForum.com covers discussions about counting words, lines, and characters in text files using command-line tools like wc.exe on Windows. Topics include capturing command output into variables in batch scripts, using SET /P with piped commands, and integrating results with MSG for pop-up messages. Users troubleshoot issues such as file not found errors and clipboard redirection. The tag is relevant for Windows 10 users working with batch automation, text processing, and command-line utilities.
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...