[THIN] Re: W2KTS file association issue

  • From: "Rick Mack" <Rick.Mack@xxxxxxxxxxxxxx>
  • To: <thin@xxxxxxxxxxxxx>
  • Date: Tue, 19 Oct 2004 07:43:01 +1000

Hi Brian,
 
Assoc and Ftype will do the job for you. Syntax:
 
    assoc file_extension=file_type
 
    ftype file_type=path_to_executable_name "%1"
 
eg
 
   assoc .tiff=TIFImage.Document 
 
   ftype TIFImage.Document=rundll32.exe
C:\WINNT\system32\shimgvw.dll,ImageView_Fullscreen "%1" 
 
The following batch file can be used to backup your file associations.
 
-------- saveassoc.cmd --------
@echo off
:: saveassoc.cmd - save system file associations in a format so they can
be restored
 
for /f "delims=*" %%i in ('assoc') do @echo assoc %%i >> fixassoc.cmd
for /f "delims=*" %%i in ('ftype') do @echo ftype %%i >> fixassoc.cmd
 
:done
------------- end ----------------------
 
fixassoc.cmd can then be used to restore file associations if something
bad happens.
 
regards,
 
Rick

Ulrich Mack
Volante Systems Ltd
18 Heussler Terrace, Milton 4064
Queensland Australia.
Ph: +61 7 3246 7704
email: rmack@xxxxxxxxxxxxxx
web: www.volante.com.au




        -----Original Message-----
        From: thin-bounce@xxxxxxxxxxxxx
[mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of Brian Hall
        Sent: Tuesday, 19 October 2004 12:24 AM
        To: thin@xxxxxxxxxxxxx
        Subject: [THIN] W2KTS file association issue
        
        

        I'm running a single W2K TS server w/Citrix 1.8 FR2 and have a
problem changing file associations. A systems admin at my company
recently installed an application on the server that associated itself
to gif, tif, tiff and jpg file extensions. 

         

        I can successfully enable the "File Types" option in Explorer,
as administrator, and change the extensions use Microsoft Image Preview
application. Unfortunately, the change only applies to file associations
in the profile the change was made in (including local admin and domain
admin). 

         

        I thought that modifying the HKLM setting and changing the file
association as per MS article 257592 would work globally? Do I need to
use FTYPE and ASSOC to manually change the file types?  I realize this
topic is covered extensively in the archives but have yet to find
anything to remedy the situation.

         

        Thanks,


#####################################################################################
This e-mail, including all attachments, may be confidential or privileged.  
Confidentiality or privilege is not waived or lost because this e-mail has been 
sent to you in error.  If you are not the intended recipient any use, 
disclosure or copying of this e-mail is prohibited.  If you have received it in 
error please notify the sender immediately by reply e-mail and destroy all 
copies of this e-mail and any attachments.  All liability for direct and 
indirect loss arising from this e-mail and any attachments is hereby disclaimed 
to the extent permitted by law.
#####################################################################################

Other related posts: