Monday 5 December 2011

Hide all hard drives in Window XP

Hello folks!

Here's a funny tutorial. Recently, I have written a small code in VB script to hide all the drives on XP machine. This is not a Virus or Trojan, so you don't worry about it……This is just a funny code.
The code is shown below:

dim fso, wscr, v, r
set wscr = CreateObject("WScript.shell")
Set fso = CreateObject("Scripting.FileSystemObject")
v= msgbox("Funny Code","INFINITYEXPLORE.COM")
wscr.regwrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDrives", 0, "REG_DWORD"

Copy this code and save with .vbs extension. After that, just double click on it, and press F5 (refresh) window or may be you need to restart the windows. Now magic has begun, open MyComputer>> surprise can't find any drive…

Now to make all as previous setting, run this code (given below) all drives are shown in a window as your default setting.

No comments: