pcm
March 19, 2009, 11:26am
1
Hi All,
I am working on one project where i need to access registration information of the operating system.
Following example may clear what i want to ask…
Windows operating system : Right click on My Computer → General Tab →
Registered to:
Name Of User
Company Name
xxx-xxx-xxxx-xxxx
I need name of user for operating system is register.
Thanks
Prem
IT2Be
March 19, 2009, 11:55am
2
You can get this info for both client and server with our tools plugin.
More info here: http://www.it2be.com/index.php/plugins- … ls-plug-in .
Don’t have Servoy running, so the exact syntax I do not know, but under the security node, there is a function to get the os user, if I’m not mistaken.
Paul
I don’t think Prem is looking for a system user but the name on the OS registration.
Not sure if Java has an API for that.
pcm
March 24, 2009, 5:22am
5
HI Robert,
You are right… i am looking for
ROCLASI:
name on the OS registration
.
I have also searched for the Java Api but didn’t get any thing. May be i am missing something…
Thanks
Prem
david
March 25, 2009, 3:58pm
6
cmdinfo returns that information. run with application.executeProgram(…), parse the results to find what you’re looking for.
Would this link be useful?
One can create a very simple java code from your javascript to get the property username.
Or is this NOT what you really mean to get?
Tom