Link to home
Create AccountLog in
Avatar of usslindstrom
usslindstromFlag for Japan

asked on

File extension association - change from vbscript

Would anybody be able to shoot me in the right direction here?

I'm in need of obtaining a vbscript that I can get accross my network to associate all JPG/BMPs to the MS Office Picture Manager.

Some how in our standard imaging push this year - the extension mapping got lost.

If possible, I need to get a script that does the association and I can push it out accross the network.


---------------

I have an example I was trying to tear apart with associating JAR files to an executable style...
REGEDIT4[HKEY_CLASSES_ROOT\.jar]@="jarfile"[HKEY_CLASSES_ROOT\jarfile]@="Executable Jar File"[HKEY_CLASSES_ROOT\jarfile\shell][HKEY_CLASSES_ROOT\jarfile\shell\open][HKEY_CLASSES_ROOT\jarfile\shell\open\command]@="C:\\Program Files\\JavaSoft\\JRE\\1.3.1\\bin\\javaw.exe -jar %1"

Open in new window

Avatar of zoofan
zoofan
Flag of United States of America image

You will find two methods for editing the registry remotly here in this question that was closed today, a vbscript I wrote and also a clean and short dos batch command by 'oBdA'


https://www.experts-exchange.com/questions/23618846/Deploying-a-registry-change-immediately.html



zf
Avatar of usslindstrom

ASKER

I apologize in being somewhat vague in the original question...

The issue isn't with editing the registry remotely...  I can definately do that already.

What I need, is the vbscript snippet that allows me to associate .JPG/.BMPs with the MS Office Picture Manager.

Thnx.
Sorry,

As I am unaware exactly what changes are made in changing the file assc of jpg/bmp to Office Pic Manager  a second idea for you.

Download  regsnap at http://lastbit.com/regsnap/

is a 30 full ver trial,  

change the assc on one pc to say paint,  then do a first snap, change it to MS pic Manager and do a second snap(do not make any other changes between snaps) then run the compare.

It will create undo/redo reg files and text file  or html report output of all keys changes and the value they were changed to.

Armed with that list use what you have or the above link to modify the script to edit the keys as needed.


zf
I dont know if there is a vbscript(or other) that you could just plugin jpg assc to ms pic and be done with it.  Doent mean there isnt just none that I know if.


zf
ASKER CERTIFIED SOLUTION
Avatar of AmazingTech
AmazingTech

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
VERY OUTSTANDING!

Thank you so incredibly much - both the ASSOC and REG ADD worked flawlessly!

It's very much appreciated!  :)

(for a note, we use the Altiris deployment solution to push scripts accross the network)