Jump to content

Recommended Posts

Posted

I think ive found one if anyone needs it :

 

Option Explicit

Dim objShell

 

Set objShell = WScript.CreateObject("Wscript.Shell")

 

' Change jpg extension

objShell.Run("cmd.exe /c assoc .jpg=jpegfile")

' Sets default icon in explorer

objShell.RegWrite "HKEY_CLASSES_ROOT\jpegfile\DefaultIcon\","shimgvw.dll,0"

 

' Change gif extension

objShell.Run("cmd.exe /c assoc .gif=giffile")

' Sets default icon in explorer

objShell.RegWrite "HKEY_CLASSES_ROOT\giffile\DefaultIcon\", "shimgvw.dll,0"

 

' Change png extension

objShell.Run("cmd.exe /c assoc .png=pngfile")

' Sets default icon in explorer

objShell.RegWrite "HKEY_CLASSES_ROOT\pngfile\DefaultIcon\", "shimgvw.dll,4"

 

' Change bmp extension

objShell.Run("cmd.exe /c assoc .bmp=Paint.Picture")

 

Set objShell=Nothing

 

steve

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



  • 43 When would you like EduGeek EDIT 2025 to be held?

    1. 1. Select a time period you can attend


      • I can make it in June\July
      • I can make it in August\Sept
      • Other time period. Comment below
      • Either time

×
×
  • Create New...