Click here to Skip to main content
16,016,643 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I need some ideas on how i can display the current logged in user with out the domain information. I m using wmi to get the current logged in user information on a remote computer and it shows like this Zack-PC\Zachary. All i want is Zachary so i can use that as a variable in other locations.

Help would be great.
Posted

1 solution

string.Split on the slash ? If you have too much info, just cut to the bit you need...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900