Welcome to www.freeshadow.tk

Friends if you like this blog then comment us follow us and aslo tell your friends to visit it and aslo tells us how to improve it Thanks

How to repair image files

0 Comments »
Friends here is a trick to repair your image files most of times you are having problem with image files with extension .BMP, .JPG, .GIF. These files are not opening correctly or not opened at all. Then  you may have a registry problem. This script should fix the image associations in the registry, allowing you to successfully work with image files again
 just copy and past this script in a notepad.





'Declare variables Dim WSHShell, p1, p2, p3 
Set WSHShell = WScript.CreateObject("WScript.Shell") 
p2 = "\ShellEx\{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1}\" 
p3 = "{7376D660-C583-11d0-A3A5-00C04FD706EC}" 

'This code suggested by Bill James For Each p1 in Array(".art",".bmp",".dib",".gif",".jfif",".jpe",".jpeg",".jpg",".png",".wmf") 
WSHShell.RegWrite "HKCR\" & p1 & p2, p3 
Next 

p1 = ".tif" 
p3 = "{1AEB1360-5AFC-11d0-B806-00C04FD706EC}" 
WSHShell.RegWrite "HKCR\" & p1 & p2, p3 
p1 = ".tiff" 
WSHShell.RegWrite "HKCR\" & p1 & p2, p3 
p1 = ".htm" 
p3 = "{EAB841A0-9550-11cf-8C16-00805F1408F3}" 
WSHShell.RegWrite "HKCR\" & p1 & p2, p3 
p1 = ".html" 
WSHShell.RegWrite "HKCR\" & p1 & p2, p3 

MsgBox "Image File Associations" & vbCR & "have been restored.", 4096, "Confirmation" 

Set WSHShell = Nothing

' End code



Now save it as imagerepair.vbs
Note: It is a script before saving check you have select All Files(Option below the file name)
11:02 PM

0 Responses to "How to repair image files"

Post a Comment

Popular Posts