Sign in to follow this  
Followers 0
Guest Zeka

Regwrite (default)

1 post in this topic

Well here I go. I am trying to make a script that alters the default recycle bin Icon. The problem is that, whenever I try to overwrite the (default) string value, I end up with 2 (default) string values. Can anybody please help?

Script: It may be a bit messy...

If MsgBox(4,"Program Information","This program will change the default Recycle Bin icon. Continue?")=7 Then

Exit

Else

$empty = FileOpenDialog("Please select the 'Empty' Icon", "", "Icons (*.ico)", 1 + 4 )

RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\DefaultIcon","(Default)","REG_SZ",$empty)

RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\DefaultIcon","Empty","REG_SZ",$empty)

$full = FileOpenDialog("Please select the 'Full'Icon","","Icons(*.ico)", 1 + 4)

RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\DefaultIcon","Full","REG_SZ",$full)

MsgBox(0,"Completed","Completed Changing")

If @error Then

MsgBox(0,"No selection","No selection was made")

Exit

EndIf

EndIf

So can anyone please help?

P.s Normally the registry key names are all on the same line.

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0