pintas Posted October 10, 2009 Share Posted October 10, 2009 Hi, I'm trying to get this value: $username=user in the registry. So, $username would replace PINTAS in the following registry entry. RegWrite('HKEY_USERS\PINTAS,'Show',"REG_DWORD",0x00000001) Anyway to use the $username value in that registry entry? Thanks! Link to comment Share on other sites More sharing options...
Scriptonize Posted October 10, 2009 Share Posted October 10, 2009 Maybe I'm missing something, but it's not that hard to do. $Username = "PINTAS" RegWrite("HKEY_USERS\" & $Username,"Show","REG_DWORD",0x00000001) If you learn from It, it's not a mistake Link to comment Share on other sites More sharing options...
Bowmore Posted October 10, 2009 Share Posted October 10, 2009 Hi, I'm trying to get this value: $username=user in the registry. So, $username would replace PINTAS in the following registry entry. RegWrite('HKEY_USERS\PINTAS,'Show',"REG_DWORD",0x00000001) Anyway to use the $username value in that registry entry? Thanks! The @username macro returns the username of the currently logged on user. RegWrite('HKEY_USERS\' & @UserName,'Show',"REG_DWORD",0x00000001) "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."- Rick Cook Link to comment Share on other sites More sharing options...
pintas Posted October 10, 2009 Author Share Posted October 10, 2009 I guess i was the one to got it wrong I tried everything except that. @Username works, but i want to add an username from an inputbox. It's a little project of mine. Thank you both for your help. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now