ok this is one i used to know but i cant rember how i did it i have been asked to create a daily login message for the staff. can do a login script but i dont what it to keep sending it i only what it to disply once a day has anyone any idears.
ok this is one i used to know but i cant rember how i did it i have been asked to create a daily login message for the staff. can do a login script but i dont what it to keep sending it i only what it to disply once a day has anyone any idears.
In your login script just make it so it it knows it has run by writing a file somewhere or adding a value to a file. Somthing Date related will work best.
Have a look at this thread

Trouble is nothing in that thread has info about only running it once.
You need to have some mechanism of tracking if the program has been run on a particular date.
Maybe create a flag file in the users home folder either called "today date".txt or a txt file hold the date in it.
So script runs.
Checks for flag.txt
If it doesn't find it then creates it and writes todays date to it then displays message.
If it finds it open it and reads in first line
If line matches todays date it exits.
If line doesn't match then it writes todays date to it and displays message.
Something like that may work?
Ben
Isn't there a "Message of the day" option buried away somewhere in the Windows installation options? It's under TCP/IP Services I think.
No idea how it works though![]()
will the mod one not run once this is what i want the one i have runs every time they log in which is the problem i have as people are getting fed up of the same message when they log in 3 or 4 time a day
There are currently 1 users browsing this thread. (0 members and 1 guests)