alonebfg Posted November 22, 2006 Posted November 22, 2006 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.
ChrisH Posted November 22, 2006 Posted November 22, 2006 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.
plexer Posted November 23, 2006 Posted November 23, 2006 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
Norphy Posted November 23, 2006 Posted November 23, 2006 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
alonebfg Posted November 23, 2006 Author Posted November 23, 2006 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now