Tips kali ini adalah tentang bagaimana caranya menghide dan menshow drives ingin tau caranya ni dia sriptnya :
Option Explicit
'Declare variables
Dim WSHShell, rr, rr2, MyBox, val, val2, ttl, toggle
Dim jobfunc, itemtype
On Error Resume Next
Set WSHShell = WScript.CreateObject("WScript.Shell")
val = "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDrives"
itemtype = "REG_DWORD"
jobfunc = "Drive"
ttl = "Result"
'reads the registry key value.
rr = WSHShell.RegRead (val)
toggle=1
If (rr=67108863) Then toggle=0
If toggle = 1 Then
WSHShell.RegWrite val, 67108863, itemtype
Mybox = MsgBox(jobfunc & "Hide.", 4096, ttl)
Else
WSHShell.RegDelete val
Mybox = MsgBox(jobfunc & "Show.", 4096, ttl)
End If
Catatan Scipt diatas berarti menghidden semua drive yang ada pada windows explorer efeknya bisa dilihat setelah direstart misalkan lo cuma pingin ngehide yang D: ganti regwrite value dan rr jadi 8 kalau misalkan inigin E 16, F 32, G 64, H 128, I 256 J 512 K 1024 dan save as showhiddrive.vbs all files
selamat mencoba***************************************
Tidak ada komentar:
Posting Komentar