[undocumented]MSG special characters and escaping them
- MigrationUser
- Posts: 336
[undocumented]MSG special characters and escaping them
11 Dec 2015 14:51
npocmaka
Some tests I've made over MSG command (aware that you need installed terminal services to make this command available) showed that there are some special characters that cannot be set at the beginning of the message ( / and - ):
both lines will print the help message .
They can be esacped with \ (only the first appearance need to be escaped):
it can be used also to put as message with quotes in :
I havent found other special sequences that can be used with \
Max length of the symbols in the message is 255
Last edited by npocmaka (11 Dec 2015 15:11)
----------------------------
#2 11 Dec 2015 23:41
Simon Sheppard
I've updated https://windevcluster.com/nt/msg.html with this
Thanks npocmaka
npocmaka
Some tests I've made over MSG command (aware that you need installed terminal services to make this command available) showed that there are some special characters that cannot be set at the beginning of the message ( / and - ):
Code: Select all
msg "%username%" "--#"
msg "%username%" "//#"
They can be esacped with \ (only the first appearance need to be escaped):
Code: Select all
msg "%username%" "\--#"
msg "%username%" "\//#"
it can be used also to put as message with quotes in :
Code: Select all
msg "%username%" "\"message with quotes\""
Max length of the symbols in the message is 255
Last edited by npocmaka (11 Dec 2015 15:11)
----------------------------
#2 11 Dec 2015 23:41
Simon Sheppard
I've updated https://windevcluster.com/nt/msg.html with this
Thanks npocmaka