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.
message command
About this tag
The message command tag on WindowsForum.com covers discussions about using the MSG command in Windows batch scripts to display text in message boxes. Threads focus on capturing command output into variables and then passing that output to the MSG command for display. Common challenges include syntax errors, file path issues, and integrating MSG with other command-line tools like WC for word counts. Users seek help with proper formatting and troubleshooting when MSG fails to show the expected content. The tag is relevant for Windows 10 and batch scripting scenarios where automated message prompts are needed.
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
path correction
script help
scripting
set command
syntax error
text count
variables
wc tool
windows 10
word count