Disclaimer: I don't have enough inside knowledge to answer your real question, nor do I have anything to prove my following notion.
What could also be the case is that msg.exe does its own command line argument parsing. On my machine (Windows XP, Dutch) I get this:
C:\>msg /?
Een bericht naar de gebruiker sturen.
MSG {gebruikersnaam | sessiennaam | sessie-ID | @bestandsnaam | *}
[/SERVER:servernaam] [/TIME:seconds] [/V] [/W] [bericht]
Liberally translated, this says that msg.exe takes the following arguments:
- Either a user name, a session name, a session ID, a "@" + file name, or a "*"
- Optional /SERVER:, /TIME:, /V, and /W switches
- Optionally a message
I suspect that what happens here is that msg.exe looks at all arguments it gets, sees that there is a "/w" before the message
1, and waits for user response.
1 Or, more precisely, that there is something that could be interpreted as a "/w" before the message, even though that wasn't the intended meaning.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.