1.

Solve : Message Boxes?

Answer»

Hey everyone,
You know if you go to notepad, type msg * HELLO, save it as a .bat and open it there will be a MESSAGE saying 'message from %username% %date% %time%'
(see picture at below)

Is it possible to get rid of that top message and replace it with like 'Warning'?

Thanks for the help.That can't be done, but it will work if you use vbscript.

Code: [Select]MsgBox "hello",48,"Warning"
Save as "filename.vbs".

8-)fffreakhey thanks fffreakI got the following. How did you ever get a message box?

Mac

Microsoft(R) Windows NT(TM)
(C) Copyright 1985-1996 Microsoft Corp.

C:\work>notepad z.bat
( I made a one-line file containing msg * hello )

C:\work>z

C:\work>msg * hello
The name specified is not recognized as an
internal or external command, operable program or batch file.

C:\work>Quote

I got the following. How did you ever get a message box?

Mac

Microsoft(R) Windows NT(TM)
(C) Copyright 1985-1996 Microsoft Corp.

C:\work>notepad z.bat
( I made a one-line file containing msg * hello )

C:\work>z

C:\work>msg * hello
The name specified is not recognized as an
internal or external command, operable program or batch file.

C:\work>

looks like its time for an UPGRADE
msg is in XP, see here
Quote
looks like its time for an upgrade

LOL - Well, not THAT INTERESTED. Actually, the NT system had such a thing in a directory of special stuff for networks which I deleted on my home computer. Too much stuff I will not use.

Thanks for the info.

Mac

If you remove portions of the operating system there are a lot of things that won't work...Quote
If you remove portions of the operating system there are a lot of things that won't work...

True, but it was an add-on directory.
http://www.microsoft.com/resources/documentation/windowsnt/4/server/reskit/en-us/reskt4u4/rku4list.mspx

I deleted over 4 years ago and never had a problem. I note that MSG was not there and now I vaguely remember my DBA days where we use NET SEND, I believe, for that function.

Mac
That can't be done, but it will work if you use vbscript.

Code: [Select]MsgBox "hello",48,"Warning"
Can that only be a vb extension or can you put that in DOS somehow to have the same result?

Thanks just wondering


Discussion

No Comment Found