I am looking for some help with a script to bascically count down time. After
about 27 hours I want the script to notify the user with a message to remind
them to log off. It will be a logon script which initiates every time a user
logs in. Can anyone help with this. I don't want to use wscript.sleep because
it is just to crude. Is vbs to weak?

Re: Countdown Script! by mr_unreliable

mr_unreliable
Thu Mar 16 14:51:13 CST 2006

hi Wayne,

Yes, sleep would work, but yes it's soooooooo unsophisticated that
your fellow scripters would scoff at you if you used it.

A better approach would be to use the "task scheduler" to schedule
a task -- the task being to run your script when you want it.

Microsoft has coded some scripts to do this for you:

http://www.microsoft.com/technet/scriptcenter/scripts/os/tasks/default.mspx

If that's not good enough, then there are several postings here
that might be useful, as this question comes up frequently:

http://groups.google.com/groups?as_q=&num=30&scoring=r&hl=en&as_epq=schedule+task&as_oq=&as_eq=&as_ugroup=microsoft.public.scripting.vbscript&as_usubject=&as_uauthors=&lr=&as_qdr=&as_drrb=b&as_mind=1&as_minm=1&as_miny=2004&as_maxd=16&as_maxm=3&as_maxy=2006&safe=off

cheers, jw
____________________________________________________________

You got questions? WE GOT ANSWERS!!! ..(but,
no guarantee the answers will be applicable to the questions)


Wayne Rollins wrote:
> I am looking for some help with a script to bascically count down time. After
> about 27 hours I want the script to notify the user with a message to remind
> them to log off. It will be a logon script which initiates every time a user
> logs in. Can anyone help with this. I don't want to use wscript.sleep because
> it is just to crude. Is vbs to weak?