PC Review


Reply
Thread Tools Rate Thread

How to determine if the day has ended on local machine

 
 
Rajat Tandon
Guest
Posts: n/a
 
      2nd Sep 2006
Hi,

I want to know if the day has finished on the local machine (i.e. - Ticked
12 night) and want to generate an event, So that we could take some actions
on the basis of it. (e.g. clearing the counters etc)

What is the standard way of doing this?

Regards,
Rajat.


 
Reply With Quote
 
 
 
 
Mark Rae
Guest
Posts: n/a
 
      2nd Sep 2006
"Rajat Tandon" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...

> I want to know if the day has finished on the local machine (i.e. - Ticked
> 12 night) and want to generate an event, So that we could take some
> actions
> on the basis of it. (e.g. clearing the counters etc)
>
> What is the standard way of doing this?


1) Is this WinForms or WebForms?

2) What sort of event do you want to generate?

3) What do you mean by "clearing the counters"?


 
Reply With Quote
 
Andy Bates
Guest
Posts: n/a
 
      2nd Sep 2006
Several options.

1. You could write a service that sets a timer running and checks the time.
Would use some resources but shouldn't too be bad. It could then trigger
events at your specific time.

2. You could add a scheduled task (via Scheduled Tasks). This can be
configured to wake at a particular time and execute your specific
application(s). It supports running at a particular time and also NT
authentication for the process.

Depends on how accurate you want want the event to be. 2 would probably be
the easiest to achieve as in 1 you would be essentially writing your own
scheduling application.

- Andy

"Rajat Tandon" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> I want to know if the day has finished on the local machine (i.e. - Ticked
> 12 night) and want to generate an event, So that we could take some
> actions
> on the basis of it. (e.g. clearing the counters etc)
>
> What is the standard way of doing this?
>
> Regards,
> Rajat.
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Determine if Local User is in Local Group orp Microsoft C# .NET 1 10th Apr 2006 06:14 PM
Determine which machine name "(local)" is? Robin Tucker Microsoft VB .NET 3 4th Feb 2005 06:27 PM
Network printing from 2000 machine to local printer on xp machine? William.R.Reisen Microsoft Windows 2000 1 27th Jan 2005 01:24 PM
How to determine whether the local machine is a domain contoller? =?Utf-8?B?R25pbHV5?= Microsoft Dot NET Framework 2 27th Nov 2004 01:15 PM
Professional machine, local machine -guest account files location Sonal Microsoft Windows 2000 Group Policy 0 1st Jul 2003 05:55 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:49 PM.