Youngit

fix lỗi Registry

May 13th, 2013
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ===== khắc phục lỗi Registry .....Admin...gì đó... ======
  2.  
  3. - các bạn copy code sau . và Save dưới đuôi .VBS nhé
  4. - Save thì các bạn chay file vừa Save . sẽ có thông báo Đóng hay Mở
  5. - chúc các bạn thành công .
  6. ==== Code =====
  7.  
  8. Option Explicit
  9. Dim WSHShell, n, MyBox, p, Titlekhanh, errnum, vers, itemtype
  10. Set WSHShell = WScript.CreateObject("WScript.Shell")
  11. p = "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\"
  12. p = p & "DisableRegistryTools"
  13. itemtype = "REG_DWORD"
  14. Titlekhanh = " Young Koga "
  15. Err.Clear
  16. On Error Resume Next
  17. n = WSHShell.RegRead (p)
  18. On Error Goto 0
  19. errnum = Err.Number
  20. if errnum <> 0 then
  21. WSHShell.RegWrite p, 0, itemtype
  22. End If
  23. If n = 0 Then
  24. n = 1
  25. WSHShell.RegWrite p, n, itemtype
  26. Mybox = MsgBox(" Hi'c hi´c', Regedit cua ban da bi khoa mat rui` ", 4096, Titlekhanh)
  27. Mybox = MsgBox(" copy by | koga-fansub.ucoz.net |", 4096, Titlekhanh)
  28. ElseIf n = 1 then
  29. n = 0
  30. WSHShell.RegWrite p, n, itemtype
  31. Mybox = MsgBox("OK ^^ .Regedit cua ban da duoc mo , Vao` doc di", 4096, Titlekhanh)
  32. End If
  33.  
  34.  
  35. =======================================================================================================
  36.  
  37. By Young
  38. http://koga-fansub.ucoz.net/
Advertisement
Add Comment
Please, Sign In to add comment