Results 1 to 2 of 2
  1. #1
    vietnamusa is offline Member
    Join Date
    Dec 2010
    Rep Power

    Default A simple program to log off a computer

    Hello Everyone,

    My kid uses computer a lot of time. Now I just want my kid to use computer with the amount of time I allow only and after that it will automatically log off the computer.

    So now I'm starting to write a simple Java program that will do 2 things:
    - the input (that I will enter) is the time to log off or the amount of time
    that means: if my kid is using computer at 4:00pm, when I run the Java program, I can enter either: 23 minutes or 4:23pm
    - the Java program will log off my kid after my kid uses the computer 23 minutes, or 4:23pm

    (my kid can use computer only after I log on the computer since I know the password and run the Java program).

    Please advise me how to write this program.

    Thank you

  2. #2
    Zack's Avatar
    Zack is offline Senior Member
    Join Date
    Jun 2010
    Destiny Islands
    Rep Power


    I don't think Java can do this (the logging off part; it can do everything else). A C++ application may be able to but you'd have to look elsewhere for this. Something like this may even already exist...

Similar Threads

  1. Simple Instruction Set Computer
    By RKO in forum New To Java
    Replies: 7
    Last Post: 12-13-2010, 05:21 PM
  2. Simple program help
    By jtyler in forum New To Java
    Replies: 3
    Last Post: 09-20-2010, 08:43 AM
  3. simple program
    By blastoff in forum New To Java
    Replies: 5
    Last Post: 04-15-2010, 12:25 AM
  4. Simple Program
    By TheRocket in forum Advanced Java
    Replies: 15
    Last Post: 12-30-2008, 03:35 PM
  5. Replies: 1
    Last Post: 12-11-2007, 05:54 AM

Posting Permissions

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