Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Ron McLeod
Liutauras Vilda
Paul Clapham
paul wheaton
Sheriffs:
Tim Cooke
Devaka Cooray
Rob Spoor
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Tim Moores
Carey Brown
Mikalai Zaikin
Bartenders:
Forum:
Java in General
getting the user name in windows NT
ali farid
Ranch Hand
Posts: 60
posted 23 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hello
If a person logins to the windows NT , and my application starts up , then i want to get the login name of that user, how can i do that....
Stephanie Grasson
Ranch Hand
Posts: 347
posted 23 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Ali,
Try this:
public class Test { public static void main(String args[]) { String user = System.getProperty("user.name"); System.out.println(user); } }
Hope this helps.
Stephanie
ali farid
Ranch Hand
Posts: 60
posted 23 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thanks Stephanie !!!
Won't you be my neighbor? - Fred Rogers. tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Using IE but getting Value: Mozilla/4.0 for user-agent
windows user name
NT Authentication in JSP
windows and jsp!!!
Windows NT authentication from a JSP page
More...