+ Post New Thread
Results 1 to 6 of 6
Wireless Networks Thread, daily message in Technical; ok this is one i used to know but i cant rember how i did it i have been asked ...
  1. #1
    alonebfg's Avatar
    Join Date
    Aug 2006
    Location
    south west some of the time
    Posts
    834
    Thank Post
    12
    Thanked 34 Times in 21 Posts
    Blog Entries
    5
    Rep Power
    24

    daily message

    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.

  2. #2
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    4,999
    Thank Post
    120
    Thanked 280 Times in 258 Posts
    Rep Power
    106

    Re: daily message

    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.

  3. #3

    Join Date
    Mar 2006
    Posts
    537
    Thank Post
    2
    Thanked 3 Times in 2 Posts
    Rep Power
    19

    Re: daily message

    Have a look at this thread

  4. #4

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    13,341
    Thank Post
    624
    Thanked 1,584 Times in 1,421 Posts
    Rep Power
    414

    Re: daily message

    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

  5. #5
    Norphy's Avatar
    Join Date
    Jan 2006
    Location
    Harpenden
    Posts
    2,242
    Thank Post
    50
    Thanked 274 Times in 212 Posts
    Blog Entries
    6
    Rep Power
    113

    Re: daily message

    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

  6. #6
    alonebfg's Avatar
    Join Date
    Aug 2006
    Location
    south west some of the time
    Posts
    834
    Thank Post
    12
    Thanked 34 Times in 21 Posts
    Blog Entries
    5
    Rep Power
    24

    Re: daily message

    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

SHARE:
+ Post New Thread

Similar Threads

  1. Message of the day
    By googlemad in forum Netware
    Replies: 0
    Last Post: 7th November 2007, 10:29 AM
  2. How do you keep track of you daily jobs?
    By Little-Miss in forum General Chat
    Replies: 28
    Last Post: 14th October 2007, 02:15 PM
  3. Message of the Day - yes again!
    By alan-d in forum How do you do....it?
    Replies: 1
    Last Post: 28th March 2007, 11:32 AM
  4. GPO to clear Internet History daily?
    By woody in forum Windows
    Replies: 8
    Last Post: 12th September 2006, 12:56 PM
  5. Daily Dilbert
    By Simcfc73 in forum General Chat
    Replies: 5
    Last Post: 3rd July 2006, 11:50 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •