huajin 0 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 Share this post Link to post Share on other sites
ripdad 100 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 Share this post Link to post Share on other sites
jguinch 432 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 Share this post Link to post Share on other sites
huajin 0 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. Share this post Link to post Share on other sites
huajin 0 Posted October 30, 2014 Did you want to hide drive A: ? A=1 yes Share this post Link to post Share on other sites
huajin 0 Posted October 30, 2014 Now, i just put it work at xp. Share this post Link to post Share on other sites