huajin Posted October 29, 2014 Share Posted October 29, 2014 (edited) i tried to write the regedit value, but not work Local $regPath = "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer" Local $regKey = "NoDrives" Local $res = RegWrite($regPath, $regKey, "REG_DWORD", 1) it will not work as admin. just only at windows 7 and above. Edited October 29, 2014 by huajin Link to comment Share on other sites More sharing options...
ripdad Posted October 29, 2014 Share Posted October 29, 2014 Did you want to hide drive A: ? A=1 "The mediocre teacher tells. The Good teacher explains. The superior teacher demonstrates. The great teacher inspires." -William Arthur Ward Link to comment Share on other sites More sharing options...
jguinch Posted October 29, 2014 Share Posted October 29, 2014 it works for me, the code seems to be good. Can you add ConsoleWrite(@error) after the RegWrite line ? Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
huajin Posted October 30, 2014 Author Share Posted October 30, 2014 it works for me, the code seems to be good. Can you add ConsoleWrite(@error) after the RegWrite line ? do you work at windows 7??? at xp , it is ok. Link to comment Share on other sites More sharing options...
huajin Posted October 30, 2014 Author Share Posted October 30, 2014 Did you want to hide drive A: ? A=1 yes Link to comment Share on other sites More sharing options...
Solution huajin Posted October 30, 2014 Author Solution Share Posted October 30, 2014 Now, i just put it work at xp. 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