Hina Posted March 30, 2009 Share Posted March 30, 2009 I want to hide the D-Drive of my PC from my kids by using Autoit so that It won't appear to anyone. By using which command of autoit I can do that??If U can help then it will be much appreciated Link to comment Share on other sites More sharing options...
Yashied Posted March 30, 2009 Share Posted March 30, 2009 I want to hide the D-Drive of my PC from my kids by using Autoit so that It won't appear to anyone. By using which command of autoit I can do that??If U can help then it will be much appreciatedRegistryHKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\ExplorerNoDrives = ... (0 - All Show, 1 - "A", 2 - "B", 4 - "C", 8 - "D", (1 + 8) - "A" and "D", etc)*Requires restartAutoItRegRead(), RegWrite(), Shutdown(2) My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
mrmacadamia Posted May 30, 2009 Share Posted May 30, 2009 I wanna try on this. I know its easy ok. If you want to hide FIXED drive only, i think this should be work. $list = DriveGetDrive("FIXED") If Not @error Then MsgBox(4096,"", "Found " & $list[0] & " drives") For $i = 1 To $list[0] $drvname = StringLeft($list[$i], 1) Switch $drvname Case "c" RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoDrives", "REG_DWORD", "4") Case "d" RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoDrives", "REG_DWORD", "8") Case "e" RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoDrives", "REG_DWORD", "16") Case "f" RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoDrives", "REG_DWORD", "32") Case "g" RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoDrives", "REG_DWORD", "64") Case "h" RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoDrives", "REG_DWORD", "128") Case "i" RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoDrives", "REG_DWORD", "256") EndSwitch Next EndIf Link to comment Share on other sites More sharing options...
Richard Robertson Posted May 30, 2009 Share Posted May 30, 2009 (edited) Or go to your administrator tools, select computer management, select storage, select partition, select properties, set to not have a drive letter. No restart required. Edited May 30, 2009 by Richard Robertson 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