+ Post New Thread
Results 1 to 6 of 6
Scripts Thread, I Am Looking For A VBScript For A Countdown Clock... in Coding and Web Development; I wonder if someone can help? I have been asked by our PE Department to place a countdown clock on ...
  1. #1

    DaveP's Avatar
    Join Date
    Oct 2006
    Location
    Can't talk now: The mother-ship is calling!
    Posts
    8,703
    Thank Post
    351
    Thanked 1,268 Times in 866 Posts
    Blog Entries
    4
    Rep Power
    1124

    I Am Looking For A VBScript For A Countdown Clock...

    I wonder if someone can help?

    I have been asked by our PE Department to place a countdown clock on student desktops. The target for the countdown is the Olympics in London later this year.

    I had thought that I could incorporate it into a custom field in BGInfo but none of the scripts I am looking at seem to do the job.

    Are there any VBScript wizards out there that could prepare a script suitable for use in a Custom Field in BGInfo?

    Thanks.

  2. #2

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,686
    Thank Post
    333
    Thanked 513 Times in 481 Posts
    Rep Power
    178
    Try this:

    Code:
    olympics=CDate("27/07/2012 00:00:00")
    wscript.echo("It is " & DateDiff("d", Now(), olympics) & " days to the olmypics!")
    Only basic, but can be modified easily. (Check date, think it's right one)

    -Edit or do you wnat hours/seconds etc?

    Steve

  3. Thanks to Steve21 from:

    DaveP (19th April 2012)

  4. #3

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    10,986
    Thank Post
    850
    Thanked 2,653 Times in 2,253 Posts
    Blog Entries
    9
    Rep Power
    764
    BGinfo will only update at each logon I think so if they want an active clock you may need to look for other alternatives, do they have a gadget:
    How do I deploy windows gadgets via Group Policy using windows server 2003.

  5. Thanks to SYNACK from:

    DaveP (19th April 2012)

  6. #4

    DaveP's Avatar
    Join Date
    Oct 2006
    Location
    Can't talk now: The mother-ship is calling!
    Posts
    8,703
    Thank Post
    351
    Thanked 1,268 Times in 866 Posts
    Blog Entries
    4
    Rep Power
    1124
    Hi Steve. Your suggestion works as a standalone VBS script but gives an error when added to BGInfo:


  7. #5

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,686
    Thank Post
    333
    Thanked 513 Times in 481 Posts
    Rep Power
    178
    Quote Originally Posted by DaveP View Post
    Hi Steve. Your suggestion works as a standalone VBS script but gives an error when added to BGInfo:


    Mmm seems bginfo does it silly, try removing the wscript and just using echo

    Steve

  8. Thanks to Steve21 from:

    DaveP (19th April 2012)

  9. #6

    DaveP's Avatar
    Join Date
    Oct 2006
    Location
    Can't talk now: The mother-ship is calling!
    Posts
    8,703
    Thank Post
    351
    Thanked 1,268 Times in 866 Posts
    Blog Entries
    4
    Rep Power
    1124
    Quote Originally Posted by Steve21 View Post
    Try this:

    Code:
    olympics=CDate("27/07/2012 00:00:00")
    wscript.echo("It is " & DateDiff("d", Now(), olympics) & " days to the olmypics!")
    Only basic, but can be modified easily. (Check date, think it's right one)

    -Edit or do you wnat hours/seconds etc?

    Steve
    Hours and seconds would be good!

    Edit: Got it working now thanks to your earlier suggestion [remove wscript] Now if we can do hours and seconds...
    Last edited by DaveP; 19th April 2012 at 10:07 AM.

SHARE:
+ Post New Thread

Similar Threads

  1. Looking for a template for behavioural points system
    By speckytecky in forum General Chat
    Replies: 3
    Last Post: 15th February 2011, 10:08 AM
  2. Replies: 4
    Last Post: 15th September 2010, 09:44 PM
  3. Looking for a quote for PC Headphones
    By speckytecky in forum Hardware
    Replies: 3
    Last Post: 26th March 2010, 09:58 AM
  4. Replies: 21
    Last Post: 9th March 2010, 02:24 PM
  5. Help Required for VBscript for Active Directory (Server 2003)
    By markwilliamson2001 in forum Windows Server 2000/2003
    Replies: 3
    Last Post: 16th January 2009, 12:42 PM

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
  •