POV-Ray : Newsgroups : povray.general : Open *.inc file via command line / explorer : Re: Open *.inc file via command line / explorer Server Time
29 Jul 2024 12:26:24 EDT (-0400)
  Re: Open *.inc file via command line / explorer  
From: Chris Cason
Date: 12 Aug 2011 07:47:37
Message: <4e4512d9@news.povray.org>
On 8/08/2011 01:09, Christian Froeschlin wrote:
> If I pass an inc file as command line parameter (or, more usefully,
> try to open an inc file in the Windows editor from Windows Explorer
> by double-clicking), this attempts to process the file as an INI
> file, then chokes on it (this is not a valid ini file).
> 
> Tested using 3.7 RC3 Windows x64 version. I would have expected
> the file to be opened in the editor as with pov files.

Any file not recognized as a POV file will be considered an INI file
by the command-line parser. This is standard POV-Ray behavior since
more or less the beginning of time (or at least since we stopped
living in caves :-)

Even if you have associated INC's with POVWIN via the windows
registry, POVWIN doesn't know that it's meant to be edited unless you
explicitly tell it to do so by passing the /EDIT command-line
parameter as well. If you look at the standard associations for the
.POV file type (as set up by the POV installer), you will see that is
exactly what it does. If you right-click on a POV file, you will see
that you are given two POV-specific options: 'Open with POV-Ray' and
'Edit with POV-Ray'.

So you need to tell windows explorer to pass the /EDIT switch before
the filename.

-- Chris


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.