Forum     

Go Back   Digit Technology Discussion Forum > Software > Software Q&A
Register FAQ Calendar Mark Forums Read

Software Q&A Having trouble with software? Find solutions here


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 15-03-2009, 04:50 PM   #1 (permalink)
Indidiot
 
Plasma_Snake's Avatar
 
Join Date: Dec 2007
Location: Rock Island
Posts: 1,416
Default My Registry Mess


I installed XP 64-bit today and since it was not giving me option to show or hide desktop icons in the Right-Click menu, I decided to get registry entries to do so. I got them from this link, http://www.kellys-korner-xp.com/xp_tweaks.htm. The code is the actual contents of the registry file:
Code:
'Enable or Disable Desktop Icons

Message = "To work correctly, the script will close" & vbCR
Message = Message & "and restart the Windows Explorer shell." & vbCR
Message = Message & "This will not harm your system." & vbCR & vbCR
Message = Message & "Continue?"

X = MsgBox(Message, vbYesNo, "Notice")

If X = 6 Then

On Error Resume Next

Dim WSHShell, n, MyBox, p, t, errnum, vers
Dim itemtype
Dim enab, disab, jobfunc

Set WSHShell = WScript.CreateObject("WScript.Shell")
p = "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDesktop"

itemtype = "REG_DWORD"

enab = "ENABLED"
disab = "DISABLED"
jobfunc = "Desktop Icons are now "

t = "Confirmation"
Err.Clear
n = WSHShell.RegRead (p)
errnum = Err.Number

if errnum <> 0 then

    WSHShell.RegWrite p, 0, itemtype
End If


If n = 0 Then
    n = 1
WSHShell.RegWrite p, n, itemtype
Mybox = MsgBox(jobfunc & disab & vbCR, 4096, t)
ElseIf n = 1 then
    n = 0
WSHShell.RegWrite p, n, itemtype
Mybox = MsgBox(jobfunc & enab & vbCR, 4096, t)
End If


Set WshShell = Nothing

On Error GoTo 0

For Each Process in GetObject("winmgmts:"). _
    ExecQuery ("select * from Win32_Process where name='explorer.exe'")
   Process.terminate(0)
Next

MsgBox "Finished." & vbcr & vbcr , 4096, "Done"

Else 

MsgBox "No changes were made to your system." & vbcr & vbcr, 4096, "User Cancelled"

End If
This was a vbscript.
Code:
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}]
@="My Documents"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\ShellFolder]
"Attributes"=dword:41f05001

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\NonEnum]
"{20D04FE0-3AEA-1069-A2D8-08002B30309D}"=dword:00000001


[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoInternetIcon"=dword:00000001

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\ShellFolder]
"Attributes"=dword:41f05001

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID\{208D2C60-3AEA-1069-A2D7-08002B30309D}\ShellFolder]
"Attributes"=dword:41f05001
This was a registry file.
Now there are no icons on desktop and nothing happens if I Right click on it. This happened after I ran the script file and after running the registry file, the "My Computer" is nowhere to be found and if the go to it by Windows Explorer, all I get is a blank window, it shows no drive nothing, although exploring further drives are accessible.
Tell me how to fix and clean this mess? Should I delete the Registry changes? I ran CCleaner and tried to fix registry but nothing worked. How to rectify the changes made by the script?
Plasma_Snake is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 15-03-2009, 05:49 PM   #2 (permalink)
gkbhat.blogspot.com
 
Join Date: Apr 2008
Location: Mangalore/Bangalore
Posts: 103
Default Re: My Registry Mess

Try running the script again.
If it does not work

Try System Restore
Start->Accessories->System Tools->System Restore and restore it to an earlier date.
__________________
blogging at http://gkbhat.blogspot.com
gk2k is offline  
Old 15-03-2009, 06:10 PM   #3 (permalink)
Legen-wait for it-dary!
 
dheeraj_kumar's Avatar
 
Join Date: Dec 2004
Location: Chennai
Posts: 2,471
Default Re: My Registry Mess

Get Fences from Stardock. Its free, and makes your desktop much more organized, plus you can hide or show icons with a double click anywhere on desktop.
__________________
If the Start Windows Restart when Windows starts check box is checked Windows Restart will start automatically every time Windows is started. - Actual excerpt from a windows program help file
dheeraj_kumar is offline  
Old 15-03-2009, 06:50 PM   #4 (permalink)
Indidiot
 
Plasma_Snake's Avatar
 
Join Date: Dec 2007
Location: Rock Island
Posts: 1,416
Default Re: My Registry Mess

System Restore is not active on any of the drive so won't work.
The basic XP Right-Click menu doesn't gives the option to hide or show icons, I want it in there only.
Plasma_Snake is offline  
Old 15-03-2009, 06:51 PM   #5 (permalink)
meh
 
Phantom Lancer's Avatar
 
Join Date: Jan 2009
Posts: 171
Default Re: My Registry Mess

Quote:
Originally Posted by gk2k View Post
Try running the script again.
If it does not work

Try System Restore
Start->Accessories->System Tools->System Restore and restore it to an earlier date.
I dont think system restore works for reg edits

Manually reversing the changes you made to the registry may be the only way .... do post the solution here if you find one
Phantom Lancer is offline  
Old 15-03-2009, 07:44 PM   #6 (permalink)
Right Off the Assembly Line
 
mihirpradhan2004's Avatar
 
Join Date: Aug 2008
Posts: 49
Default Re: My Registry Mess

Quote:
Originally Posted by dheeraj_kumar View Post
Get Fences from Stardock. Its free, and makes your desktop much more organized, plus you can hide or show icons with a double click anywhere on desktop.
+1 for Stardock Fences...
mihirpradhan2004 is offline  
Old 16-03-2009, 12:25 AM   #7 (permalink)
Indidiot
 
Plasma_Snake's Avatar
 
Join Date: Dec 2007
Location: Rock Island
Posts: 1,416
Default Re: My Registry Mess

^^ It may be great stuff but stuff like 'em prominently the Brico Packs etc. they don't work with 64-bit XP!
Plasma_Snake is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Sarath
- by clmlbx
- by ico
- by clinton
- by icebags
- by Charan

Advertisement




All times are GMT +5.5. The time now is 01:31 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2