Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 232
  • Last Modified:

Howto detect XP user

How can I detect the currently logged-in user in XP from with a Java program?
0
stevebeech
Asked:
stevebeech
  • 3
1 Solution
 
zzynxSoftware engineerCommented:
System.getProperty("user.name");
0
 
zzynxSoftware engineerCommented:
returns the User's account name (String)

For the others see http://java.sun.com/docs/books/tutorial/essential/system/properties.html
0
 
zzynxSoftware engineerCommented:
Thanks
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now