1.

Solve : Batch file to change program used to open files?

Answer»

Is it possible to write a batch file that adds a new file extension and tells Windows which PROGRAM you would like to use to open files with that extension?

Many thanksthe help SYSTEM gives the following
C:\>help assoc
DISPLAYS or modifies file extension associations

ASSOC [.ext[=[fileType]]]

.ext SPECIFIES the file extension to associate the file type with
fileType Specifies the file type to associate with the file extension

Type ASSOC without parameters to display the current file associations.
If ASSOC is invoked with just a file extension, it displays the current
file association for that file extension. Specify nothing for the file
type and the command will delete the association for the file extension.
That's just what I was looking for, top marks!!!!!

Thanks



Discussion

No Comment Found