There are two independent issues here: (1) How to convert
XYZ to Gaussian input file and (2) How to make Windows to not associate it with Graphics Interchange Format.
(1) You can use OpenBabel to convert
XYZ (or any other chemical format) to Gaussian input. In this case, the suggested extensions are
com. This extension will also recognized by GaussView.
(2) If you would like that when you double-click on the file, it opens with GaussView or Gaussian executable instead any image reading program, you need to change the Windows association to your file:
Many types of files can be opened by more than one program. For
example, you can open a photo with the Photos program or with Paint,
among others. Follow these steps to change the default program that
Windows uses to open each type of file.
- In Windows 7, Windows 8, and Windows 10, choose Start and then type Control Panel.
- Choose Programs > Make a file type always open in a specific program. If you don't see Programs, choose Default Programs.
- Associate a file type or protocol with a program.
- In the Set Associations tool, select the file type you want to change the program for, then choose Change program.
- Once you've chosen the new program to use to open that file type, choose OK.
Other way to open your file with the program you want, is clicking with the right mouse button, and look for
Open with another program (in this case, you will need to do it everytime).