Home / Microsoft / Microsoft DOS / Message Boxes
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] - (Bottom) Print
Author Topic: Message Boxes  (Read 629 times)
Carbon Dudeoxide
Topic Starter
Global Moderator
Mastermind


Thanked: 146
Posts: 16,087

Certifications: List
Computer: Specs
Experience: Expert
OS: Mac OS


Carbon - The building block of life on Earth.

My Youtube Profile 1 1
« on: March 05, 2007, 06:38:56 AM »

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.
IP logged

fffreak
Adviser



Thanked: 3
Posts: 824

Experience: Guru
OS: Windows XP
That's right I am a final fantasy freak.

JSPCRepair 1
« Reply #1 on: March 05, 2007, 01:41:14 PM »

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

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

8-)fffreak
IP logged

Computers are the future, not us. Learn everything you can about them while you still can, soon they will be learning about us... Every bit of advice that I give you is best guess, it is your choice whether or not you listen to it.
Carbon Dudeoxide
Topic Starter
Global Moderator
Mastermind


Thanked: 146
Posts: 16,087

Certifications: List
Computer: Specs
Experience: Expert
OS: Mac OS


Carbon - The building block of life on Earth.

My Youtube Profile 1 1
« Reply #2 on: March 05, 2007, 03:40:48 PM »

hey thanks fffreak
IP logged

QBasicMac
Guest
« Reply #3 on: March 05, 2007, 06:12:54 PM »

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>
IP logged
ghostdog74
Mentor



Thanked: 26
Posts: 1,511


« Reply #4 on: March 06, 2007, 12:51:42 AM »

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
IP logged

QBasicMac
Guest
« Reply #5 on: March 10, 2007, 08:56:43 AM »

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

IP logged
patio
Moderator
Genius



Thanked: 1069
Posts: 11,354

Experience: Beginner
OS: Windows 7


Maud' Dib

« Reply #6 on: March 10, 2007, 08:59:50 AM »

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

   
"
All generalizations are false, including this one.  "
QBasicMac
Guest
« Reply #7 on: March 10, 2007, 10:39:32 AM »

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
IP logged
LilHackerlt
Guest
« Reply #8 on: March 19, 2007, 04:16:46 AM »

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
« Last Edit: March 19, 2007, 04:18:25 AM by LilHackerlt » IP logged
Pages: [1] - (Top) Print 
Home / Microsoft / Microsoft DOS / Message Boxes « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.083 seconds with 20 queries.