Tiff File association
We are using Windows 7 and whenever we are downloading a .tiff file from an application it is asking for a file association. Now for this the user has to go to "Open With">"Choose Default program" and choose "Windows Photo Viewer". can this solution be automated and deployed to all of them rather than they doing it. Also, it shows the protected mode prompt, how to diable that?
0 Comments
[ + ] Show comments
Answers (3)
Answer Summary:
http://commandwindows.com/assoc.htm
http://commandwindows.com/assoc.htm
Please log in to answer
Posted by:
akki
12 years ago
You can use this Script :
'-------------------------------------------------------------------------------------------------------
Option Explicit
Dim objShell
set objShell = WScript.CreateObject ("WScript.Shell")
'Change this line to associate your <.abc> to open with
addFileAssociation ".txt", "notepad.exe"
Sub addFileAssociation( fileExt, whichApp )
If ( Left(fileExt, 1) <> "." ) Then
fileExt = "." & fileExt
End If
objShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\" & fileExt & "\Application", whichApp
End Sub
'-------------------------------------------------------------------------------------------------------------------
'-------------------------------------------------------------------------------------------------------
Option Explicit
Dim objShell
set objShell = WScript.CreateObject ("WScript.Shell")
'Change this line to associate your <.abc> to open with
addFileAssociation ".txt", "notepad.exe"
Sub addFileAssociation( fileExt, whichApp )
If ( Left(fileExt, 1) <> "." ) Then
fileExt = "." & fileExt
End If
objShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\" & fileExt & "\Application", whichApp
End Sub
'-------------------------------------------------------------------------------------------------------------------
Posted by:
Mencaliss
12 years ago