hi to all
this is a vbs code adding one value to the registery ... how can we add another value in the same code
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\Nodesktop
thanks in advance
the code
Option Explicit
On Error Resume Next
Dim WSHShell, n, p, itemtype, MyBox, vbdefaultbutton
Set WSHShell = WScript.CreateObject("WScript.Shell")
p = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\Nofind"
itemtype = "REG_DWORD"
n = WSHShell.RegRead (p)
errnum = Err.Number
if errnum <> 0 then
WSHShell.RegWrite p, 1, itemtype
End If
If n = 0 Then
WshShell.RegWrite p, 1, itemtype
MyBox = MsgBox("تم اخفاء مفتاح ابحث ", 64, "اخفاء البحث")
End If
If n = 1 Then
WshShell.Regwrite p, 0, itemtype
MyBox = MsgBox("تم اعادة مفتاح وينوز", 64, "تمكين البحث")
End If
Set WshShell = Nothing
VisitKelly's Korner
Sub VisitKelly's Korner
If MsgBox("مع تحيات احمد يوسف") =6 Then
wshshell.Run "http://www.kellys-korner-xp.com/xp_tweaks.htm"
End If
End Sub
this is a vbs code adding one value to the registery ... how can we add another value in the same code
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\Nodesktop
thanks in advance
the code
Option Explicit
On Error Resume Next
Dim WSHShell, n, p, itemtype, MyBox, vbdefaultbutton
Set WSHShell = WScript.CreateObject("WScript.Shell")
p = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\Nofind"
itemtype = "REG_DWORD"
n = WSHShell.RegRead (p)
errnum = Err.Number
if errnum <> 0 then
WSHShell.RegWrite p, 1, itemtype
End If
If n = 0 Then
WshShell.RegWrite p, 1, itemtype
MyBox = MsgBox("تم اخفاء مفتاح ابحث ", 64, "اخفاء البحث")
End If
If n = 1 Then
WshShell.Regwrite p, 0, itemtype
MyBox = MsgBox("تم اعادة مفتاح وينوز", 64, "تمكين البحث")
End If
Set WshShell = Nothing
VisitKelly's Korner
Sub VisitKelly's Korner
If MsgBox("مع تحيات احمد يوسف") =6 Then
wshshell.Run "http://www.kellys-korner-xp.com/xp_tweaks.htm"
End If
End Sub