Results 1 to 5 of 5
  1. #1
    chyrl is offline Senior Member
    Join Date
    Mar 2010
    Location
    Manila, Philippines
    Posts
    257
    Rep Power
    5

    Exclamation How to capture Windows Active User

    Is there such thing could be done in Java or with use of JNI?
    How to capture the User Account of Windows platforms ie. Windows XP, Vista and 7?

    Thanks.
    Every project, package, class, method, variable, syntax, algorithm, etc.
    are registered in my memory bank. Thanks to this thread.

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,344
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by chyrl View Post
    Is there such thing could be done in Java or with use of JNI?
    How to capture the User Account of Windows platforms ie. Windows XP, Vista and 7?
    The system properties have a property "user.name".

    kind regards,

    Jos

  3. #3
    Webuser is offline Senior Member
    Join Date
    Dec 2008
    Posts
    526
    Rep Power
    0

    Default

    Emm...

    to be more correct
    System.getProperty("user.name");
    System (Java 2 Platform SE v1.4.2))
    If my answer helped you. Please click my "REP" button and add a comment
    Have a Good Java Coding :)

  4. #4
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,344
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by Webuser View Post
    Emm...

    to be more correct
    I what way is your answer 'more correct' than mine? Are you begging for 'rep' points again? b.t.w. Java version 1.4.2 is long dead.
    Jos

  5. #5
    chyrl is offline Senior Member
    Join Date
    Mar 2010
    Location
    Manila, Philippines
    Posts
    257
    Rep Power
    5

    Default

    Thanks for the link.
    The thread is solved.
    Every project, package, class, method, variable, syntax, algorithm, etc.
    are registered in my memory bank. Thanks to this thread.

Similar Threads

  1. active jtable
    By water in forum AWT / Swing
    Replies: 0
    Last Post: 11-06-2009, 04:04 AM
  2. Knowing which IP address is active
    By sukatoa in forum Networking
    Replies: 2
    Last Post: 05-05-2009, 04:01 PM
  3. Replies: 8
    Last Post: 12-01-2008, 02:07 PM
  4. Check Menu active
    By Mir in forum AWT / Swing
    Replies: 0
    Last Post: 06-12-2008, 06:53 AM
  5. Replies: 0
    Last Post: 02-06-2008, 02:07 PM

Posting Permissions

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