+ Post New Thread
Results 1 to 2 of 2
Windows Thread, Change Defualt Image Editor Program Globally in Technical; Anyone know how to asign the default image editor program via an ADM or Script ??...
  1. #1

    Join Date
    Jun 2009
    Location
    Liverpool
    Posts
    60
    Thank Post
    11
    Thanked 2 Times in 2 Posts
    Rep Power
    14

    Change Defualt Image Editor Program Globally

    Anyone know how to asign the default image editor program via an ADM or Script ??

  2. #2

    Join Date
    Jun 2009
    Location
    Liverpool
    Posts
    60
    Thank Post
    11
    Thanked 2 Times in 2 Posts
    Rep Power
    14
    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

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 2
    Last Post: 5th July 2010, 10:01 AM
  2. [Fog] Change Image Location?
    By PRicho in forum O/S Deployment
    Replies: 1
    Last Post: 11th December 2009, 11:18 AM
  3. Free online image editor -pixlr - no registration required
    By damienharrison in forum Office Software
    Replies: 0
    Last Post: 25th February 2009, 01:03 PM
  4. Change Registry to foce program for files
    By smad in forum Windows Server 2008
    Replies: 0
    Last Post: 20th October 2008, 08:33 AM
  5. GNU Image Manipulation Program (GIMP)
    By _Bat_ in forum Downloads
    Replies: 1
    Last Post: 30th June 2006, 10:32 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •