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...
batch file
character count
clipboard
cmd
command output
error resolution
file path
line count
messagecommand
output variable
path correction
script help
set command
syntax error
text count
variable
wc tool
windows 10
windows scripting
word count