Jump to content

So I have a script (below) that is in a batch file. When this batch file is ran as administrator it does nothing, have I done something wrong? (when the script is run with the default file associations window open, it refreshes, OS=W7)

 

As far as I know I can set 

ASSOC .PDF=What.ever.I.Want

is this correct or is it application specific.

 

	assoc .pdf=
	assoc .Tiff=
	assoc .tif=
	 
	FTYPE IMAGEVIEWER.PDF="C:\Program files (x86)\OpenText\Viewer\bin\alviewer.exe" "%1"
	ASSOC .PDF=IMAGEVIEWER.PDF
	 
	FTYPE IMAGEVIEWER.TIF="C:\Program files (x86)\OpenText\Viewer\bin\alviewer.exe" "%1"
	ASSOC .TIF=IMAGEVIEWER.TIF
	 
	FTYPE IMAGEVIEWER.TIFF="C:\Program files (x86)\OpenText\Viewer\bin\alviewer.exe" "%1"
	ASSOC .TIFF=IMAGEVIEWER.TIFF
	 
	

Link to comment
https://linustechtips.com/topic/603898-cmd-change-file-association/
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×