Results 1 to 5 of 5

Thread: How to change system clock/time?

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 1999
    Posts
    15
    Does anybody know how to do this? What I need is a program that will detect when it is a given time of day, and then change the system time to a different time, and then later change the time back to actual time. Oh, and it has to work on NT4.

    I have no idea how to do this. (I've searched to no avail)

    Thanks.



  2. #2
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    Code:
    If Time = "11:00:00" Then
       Time = Text1.Text
    End If
    Time is the variable that you would use.

    Hope that helps,
    D!m
    Dim

  3. #3
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    the above won't work.
    In code you would need a timer to check the time
    Timer1 Code...
    Code:
    If time = "12:01:00 PM" then
      'I don't know the code approach but here is how you _
         can shell the dialog for manual change.
    End If
    
    
    Shell "rundll32.exe shell32.dll,Control_RunDLL timedate.cpl,,/fa"
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  4. #4
    Guest
    Here is a link to the SetSystemTime api function which will allow you to change the time and date of the system's clock.

  5. #5

    Thread Starter
    New Member
    Join Date
    Aug 1999
    Posts
    15
    Hey, thanks. I think Matthew Gates wins the top thanks, though.

Posting Permissions

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



Click Here to Expand Forum to Full Width