Jump to content

Recommended Posts

Posted
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.
Posted
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.
Posted

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

Posted

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 :)

Posted
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...