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.
-
M
Windows 10 CMD.EXE - How to fix command output into variable
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...- MIRKOSOFT
- Thread
- batch file character count clipboard cmd command output error resolution file path line count output path correction script help scripting set command syntax error text count variables wc tool windows 10 word count
- Replies: 5
- Forum: Windows Help and Support