• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 5482
  • Last Modified:

Associate .tif and .mdi files with Microsoft Office Document Imaging

I need to associate .tif and .mdi files with Microsoft Office Document Imaging on over 1300 XP clients.

Can I do this with vbscript rather than manually per the below KB article???

http://support.microsoft.com/kb/938813/
0
NEARNG
Asked:
NEARNG
1 Solution
 
ltlbearand3Commented:
If your willing to let vbscript play with your registry try this . . .

Option Explicit

Dim objReg, strComputer

Const HKEY_CLASSES_ROOT = &H80000000
strComputer = "."

Set objReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _
    strComputer & "\root\default:StdRegProv")

objReg.SetStringValue HKEY_CLASSES_ROOT, ".tif", "", "MSPaper.Document"
objReg.SetStringValue HKEY_CLASSES_ROOT, ".mdi", "", "MSPaper.Document"
0
 
RobSampsonCommented:
You can also try the DOS commmands (which can be executed from a VBS file), FTYPE and ASSOC.
Try this in a batch file, see if this works:

ASSOC .tif="MSPaper.Document"
ASSOC .tiff="MSPaper.Document"
ASSOC .mdi="MSPaper.Document"
FTYPE MSPaper.Document="rundll32.exe C:\WINDOWS\system32\shimgvw.dll,ImageView_Fullscr
een %1"

Regards,

Rob.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now