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.
  1. 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...
Back
Top