Message of the day in notepad or write
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Message of the day in notepad or write

 
Post new topic   Reply to topic    Windows Server Forum Index -> Programming
Author Message
wb
Guest





Posted: Sat Jan 08, 2005 8:20 pm    Post subject: Message of the day in notepad or write Reply with quote

I have a situation where users do not read my important emails of system
changes or down times, so I would like a message of the day to popup in
notepad when users logon. In this message I can put system changes or
downtimes.

I know little about scripting and have a simple batch file mapping drive,
can anyone help or direct me to a site which will help me implement this?

Wayne
Back to top
Corné Bogaarts
Guest





Posted: Sat Jan 08, 2005 10:37 pm    Post subject: Re: Message of the day in notepad or write Reply with quote

In Windows2000 and XP you only have to type the path and filename in a
command-prompt in order to open that file with whatever program is
linked to the extension.
Just try this:
Make a textfile 'c:\temp\simple.txt' or a Word(pad)-document
'H:\SharedFiles\Importand Warning.doc'. Open a command prompt and type
c:\temp\simple.txt and press <Enter>
Tada... , the file opens in NotePad (or your favorite text-editor
Similarly type "h:\sharedfiles\Importand Warning.doc" <Enter>.
Remember to use " 's when there's a space in either the folder- or the
file-name.
This also works in a batchfile.

However, if you simply put such a path\filename in your batchfile, the
batch will stop executing, until the user quits the program (i.e.
Notepad/Word/etc.)
Therefore you should use the 'start' statement and include the program
that should open the file:

@echo off
start notepad c:\temp\simple.txt
start wordpad "H:\long path with spaces\warning.doc"
....


Hope this helps,

Corné

On Sat, 8 Jan 2005 14:20:54 -0000, "wb" <wmb2003@zoom.co.uk> wrote:

Quote:
I have a situation where users do not read my important emails of system
changes or down times, so I would like a message of the day to popup in
notepad when users logon. In this message I can put system changes or
downtimes.

I know little about scripting and have a simple batch file mapping drive,
can anyone help or direct me to a site which will help me implement this?

Wayne





--- --- --- --- --- --- ---
Most answers can be found in the Schedule+ FAQ: http://www.xs4all.nl/~bogaarts/schdmenu.htm.
Please reply to the newsgroup. For reasons of Spam, I won't be including my E-mail address anymore.
Back to top
wb
Guest





Posted: Sat Jan 08, 2005 11:02 pm    Post subject: Re: Message of the day in notepad or write Reply with quote

That's great thank you

Can I define the size of the notepad window which opens?

"Corné Bogaarts" <does.not.exist@bigfoot.com> wrote in message
news:ljvvt01n74m7ook5kpct7krqgatc24iof6@4ax.com...
Quote:
In Windows2000 and XP you only have to type the path and filename in a
command-prompt in order to open that file with whatever program is
linked to the extension.
Just try this:
Make a textfile 'c:\temp\simple.txt' or a Word(pad)-document
'H:\SharedFiles\Importand Warning.doc'. Open a command prompt and type
c:\temp\simple.txt and press <Enter
Tada... , the file opens in NotePad (or your favorite text-editor
Similarly type "h:\sharedfiles\Importand Warning.doc" <Enter>.
Remember to use " 's when there's a space in either the folder- or the
file-name.
This also works in a batchfile.

However, if you simply put such a path\filename in your batchfile, the
batch will stop executing, until the user quits the program (i.e.
Notepad/Word/etc.)
Therefore you should use the 'start' statement and include the program
that should open the file:

@echo off
start notepad c:\temp\simple.txt
start wordpad "H:\long path with spaces\warning.doc"
...


Hope this helps,

Corné

On Sat, 8 Jan 2005 14:20:54 -0000, "wb" <wmb2003@zoom.co.uk> wrote:

I have a situation where users do not read my important emails of system
changes or down times, so I would like a message of the day to popup in
notepad when users logon. In this message I can put system changes or
downtimes.

I know little about scripting and have a simple batch file mapping drive,
can anyone help or direct me to a site which will help me implement this?

Wayne





--- --- --- --- --- --- ---
Most answers can be found in the Schedule+ FAQ:
http://www.xs4all.nl/~bogaarts/schdmenu.htm.
Please reply to the newsgroup. For reasons of Spam, I won't be including
my E-mail address anymore.
Back to top
Al Dunbar [MS-MVP]
Guest





Posted: Sun Jan 09, 2005 2:17 am    Post subject: Re: Message of the day in notepad or write Reply with quote

"wb" <wmb2003@zoom.co.uk> wrote in message
news:OL0qTPa9EHA.1292@TK2MSFTNGP10.phx.gbl...
Quote:
That's great thank you

Can I define the size of the notepad window which opens?

If you want to manage the user experience of your message, I would recommend
that you put your announcements in a web page that is displayed at logon if
an event is imminent. Either that or using an HTA (Hyper Text Application).
In either case, the size and positioning of the display can be managed to
make it more effective. It should be easy for the user to dismiss (i.e. a
single click or keystroke) and/or could disappear after a timeout. IMHO,
throwing up a file displayed in notepad will not be particularly effective
for your purposes. Some will look at it and say to themselves: "Hmmm,
Notepad. I use that to edit files - what am I supposed to do with this one?"

A few comments/suggestions on your problem in general:

- we still use e-mail for this, and format the messages to alert people to
the fact that this is a notice that it is in their best interest to take
note of. When they complain later that they did not know the system would be
shutdown at a certain time, we tell them that the most effective way we have
of advising them is to send everyone an e-mail. Here is the one we sent
about the recent shutdown - did you not see it? If not, perhaps you should
pay more attention to the bulletins we send out. - Note that we use much
less sarcasm than my comments here indicate.

- whatever you do, do it consistently.

- whatever you do, consider the annoyance factor. People will tend to NOT
READ announcements displayed at logon if announcements are ALWAYS displayed,
even if they are made to look different from time to time.

- if you announce that the system will be down, make sure you take it down,
even if the need for the shutdown has changed or been postponed. Users have
a hard enough time understanding that the system will be down - they cannot
handle at all cancellation or postponement notices, as these tend to confuse
them to no end. If a shutdown is postponed, do it anyway, and advertise the
deferred shutdown as a new event.

- we are contemplating creating a web page to publish scheduled shutdown
events, and then advising people to check there WHENEVER a shutdown would be
a significant inconvenience. We might then broadcast reminders to look
there, or pop it up from the logon script once per week per user, or pop it
up when an event is imminent.

- above all things, consider the psychology of your users, and design your
approach to maximize their ability to work around shutdown events.


/Al

Quote:
"Corné Bogaarts" <does.not.exist@bigfoot.com> wrote in message
news:ljvvt01n74m7ook5kpct7krqgatc24iof6@4ax.com...
In Windows2000 and XP you only have to type the path and filename in a
command-prompt in order to open that file with whatever program is
linked to the extension.
Just try this:
Make a textfile 'c:\temp\simple.txt' or a Word(pad)-document
'H:\SharedFiles\Importand Warning.doc'. Open a command prompt and type
c:\temp\simple.txt and press <Enter
Tada... , the file opens in NotePad (or your favorite text-editor
Similarly type "h:\sharedfiles\Importand Warning.doc" <Enter>.
Remember to use " 's when there's a space in either the folder- or the
file-name.
This also works in a batchfile.

However, if you simply put such a path\filename in your batchfile, the
batch will stop executing, until the user quits the program (i.e.
Notepad/Word/etc.)
Therefore you should use the 'start' statement and include the program
that should open the file:

@echo off
start notepad c:\temp\simple.txt
start wordpad "H:\long path with spaces\warning.doc"
...


Hope this helps,

Corné

On Sat, 8 Jan 2005 14:20:54 -0000, "wb" <wmb2003@zoom.co.uk> wrote:

I have a situation where users do not read my important emails of system
changes or down times, so I would like a message of the day to popup in
notepad when users logon. In this message I can put system changes or
downtimes.

I know little about scripting and have a simple batch file mapping
drive,
can anyone help or direct me to a site which will help me implement
this?

Wayne





--- --- --- --- --- --- ---
Most answers can be found in the Schedule+ FAQ:
http://www.xs4all.nl/~bogaarts/schdmenu.htm.
Please reply to the newsgroup. For reasons of Spam, I won't be including
my E-mail address anymore.

Back to top
Dave Harry
Guest





Posted: Mon Jan 10, 2005 4:55 am    Post subject: Re: Message of the day in notepad or write Reply with quote

You could use a message box like this, to pop up a window that itmes out.

Dim Message
Set WshShell = WScript.CreateObject("WScript.Shell")
Message = WshShell.Popup ("Message will close in 30 seconds", 30, "Message
Title",vbQuestion + vbSystemModal)

Now, I used that in a subroutine which asked yes or no questions with
default timeout. You could use "vbexclamation" or "vbinformation" (if I
recall correctly) instead of vbquestion.

HTH

"Al Dunbar [MS-MVP]" <alan-no-drub-spam@hotmail.com> wrote in message
news:ei5tS8b9EHA.2196@TK2MSFTNGP14.phx.gbl...
Quote:

"wb" <wmb2003@zoom.co.uk> wrote in message
news:OL0qTPa9EHA.1292@TK2MSFTNGP10.phx.gbl...
That's great thank you

Can I define the size of the notepad window which opens?

If you want to manage the user experience of your message, I would
recommend
that you put your announcements in a web page that is displayed at logon
if
an event is imminent. Either that or using an HTA (Hyper Text
Application).
In either case, the size and positioning of the display can be managed to
make it more effective. It should be easy for the user to dismiss (i.e. a
single click or keystroke) and/or could disappear after a timeout. IMHO,
throwing up a file displayed in notepad will not be particularly effective
for your purposes. Some will look at it and say to themselves: "Hmmm,
Notepad. I use that to edit files - what am I supposed to do with this
one?"

A few comments/suggestions on your problem in general:

- we still use e-mail for this, and format the messages to alert people to
the fact that this is a notice that it is in their best interest to take
note of. When they complain later that they did not know the system would
be
shutdown at a certain time, we tell them that the most effective way we
have
of advising them is to send everyone an e-mail. Here is the one we sent
about the recent shutdown - did you not see it? If not, perhaps you should
pay more attention to the bulletins we send out. - Note that we use much
less sarcasm than my comments here indicate.

- whatever you do, do it consistently.

- whatever you do, consider the annoyance factor. People will tend to NOT
READ announcements displayed at logon if announcements are ALWAYS
displayed,
even if they are made to look different from time to time.

- if you announce that the system will be down, make sure you take it
down,
even if the need for the shutdown has changed or been postponed. Users
have
a hard enough time understanding that the system will be down - they
cannot
handle at all cancellation or postponement notices, as these tend to
confuse
them to no end. If a shutdown is postponed, do it anyway, and advertise
the
deferred shutdown as a new event.

- we are contemplating creating a web page to publish scheduled shutdown
events, and then advising people to check there WHENEVER a shutdown would
be
a significant inconvenience. We might then broadcast reminders to look
there, or pop it up from the logon script once per week per user, or pop
it
up when an event is imminent.

- above all things, consider the psychology of your users, and design your
approach to maximize their ability to work around shutdown events.


/Al

"Corné Bogaarts" <does.not.exist@bigfoot.com> wrote in message
news:ljvvt01n74m7ook5kpct7krqgatc24iof6@4ax.com...
In Windows2000 and XP you only have to type the path and filename in a
command-prompt in order to open that file with whatever program is
linked to the extension.
Just try this:
Make a textfile 'c:\temp\simple.txt' or a Word(pad)-document
'H:\SharedFiles\Importand Warning.doc'. Open a command prompt and type
c:\temp\simple.txt and press <Enter
Tada... , the file opens in NotePad (or your favorite text-editor
Similarly type "h:\sharedfiles\Importand Warning.doc" <Enter>.
Remember to use " 's when there's a space in either the folder- or the
file-name.
This also works in a batchfile.

However, if you simply put such a path\filename in your batchfile, the
batch will stop executing, until the user quits the program (i.e.
Notepad/Word/etc.)
Therefore you should use the 'start' statement and include the program
that should open the file:

@echo off
start notepad c:\temp\simple.txt
start wordpad "H:\long path with spaces\warning.doc"
...


Hope this helps,

Corné

On Sat, 8 Jan 2005 14:20:54 -0000, "wb" <wmb2003@zoom.co.uk> wrote:

I have a situation where users do not read my important emails of
system
changes or down times, so I would like a message of the day to popup in
notepad when users logon. In this message I can put system changes or
downtimes.

I know little about scripting and have a simple batch file mapping
drive,
can anyone help or direct me to a site which will help me implement
this?

Wayne





--- --- --- --- --- --- ---
Most answers can be found in the Schedule+ FAQ:
http://www.xs4all.nl/~bogaarts/schdmenu.htm.
Please reply to the newsgroup. For reasons of Spam, I won't be
including
my E-mail address anymore.



Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Programming All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB