POV-Ray : Newsgroups : povray.general : Cannot run POV-Ray from Windows batch scripts Server Time
2 Nov 2024 11:23:31 EDT (-0400)
  Cannot run POV-Ray from Windows batch scripts (Message 1 to 5 of 5)  
From: Cousin Ricky
Subject: Cannot run POV-Ray from Windows batch scripts
Date: 21 Jun 2009 00:40:01
Message: <web.4a3db92ce7e441a578641e0c0@news.povray.org>
I have recently upgraded POV-Ray for Windows from 3.6.1 to 3.6.2 (32-bit
edition).  Batch scripts that worked perfectly fine in the past now give me
this error message:

   Commandline processing error
   Only /EDIT and /RENDER may be passed to previous instance

Here is a sample script:
________________________________________________________________

: Options | Keep Single Instance must be OFF.
:
setlocal
set PATH=%PATH%;"C:\Program Files\POV-Ray for Windows v3.6\bin"
:
time /t
start /w pvengine /nr /exit +a +r3 -j +igamma +ogamma10 display_gamma=1.0
start /w pvengine /nr /exit +a +r3 -j +igamma +ogamma14 display_gamma=1.4
start /w pvengine /nr /exit +a +r3 -j +igamma +ogamma16 display_gamma=1.6
start /w pvengine /nr /exit +a +r3 -j +igamma +ogamma18 display_gamma=1.8
start /w pvengine /nr /exit +a +r3 -j +igamma +ogamma20 display_gamma=2.0
start /w pvengine /nr /exit +a +r3 -j +igamma +ogamma22 display_gamma=2.2
start /w pvengine /nr /exit +a +r3 -j +igamma +ogamma24 display_gamma=2.4
start /w pvengine /nr /exit +a +r3 -j +igamma +ogamma26 display_gamma=2.6
start /w pvengine /nr /exit +a +r3 -j +igamma +ogamma30 display_gamma=3.0
time /t
pause
:
endlocal
________________________________________________________________

I tried the following variations and got the same error:

   start /w pvengine /nr /exit /render gamma.pov +a +r3 -j +ogamma10
      display_gamma=1.0

   start /w pvengine /nr /exit /render gamma.pov +igamma +a +r3 -j
      +ogamma10 display_gamma=1.0

Am I missing something?

I'm running Windows XP Media Center Edition version 2002 SP3.

TIA.


Post a reply to this message

From: Chris Cason
Subject: Re: Cannot run POV-Ray from Windows batch scripts
Date: 21 Jun 2009 01:49:59
Message: <4a3dca07@news.povray.org>
Cousin Ricky wrote:
> I have recently upgraded POV-Ray for Windows from 3.6.1 to 3.6.2 (32-bit
> edition).  Batch scripts that worked perfectly fine in the past now give me
> this error message:
> 
>    Commandline processing error
>    Only /EDIT and /RENDER may be passed to previous instance

Sounds like you've already got a copy running and don't have "allow
multiple instances" set in the options.

-- Chris


Post a reply to this message

From: Cousin Ricky
Subject: Re: Cannot run POV-Ray from Windows batch scripts
Date: 21 Jun 2009 02:10:00
Message: <web.4a3dcdebe8920bce78641e0c0@news.povray.org>
Chris Cason <del### [at] deletethistoopovrayorg> wrote:
>
> Sounds like you've already got a copy running and don't have "allow
> multiple instances" set in the options.

I have Keep Single Instance unchecked.  I keep an interactive POV session
running so that the /NR from the batch script doesn't close all my editor
files.


Post a reply to this message

From: Cousin Ricky
Subject: Re: Cannot run POV-Ray from Windows batch scripts
Date: 21 Jun 2009 06:00:01
Message: <web.4a3e03e9e8920bce78641e0c0@news.povray.org>
I found the problem.  Version 3.6.2 was installed in a new directory, but the
PATH variable was set to the old 3.6 directory.


Post a reply to this message

From: clipka
Subject: Re: Cannot run POV-Ray from Windows batch scripts
Date: 21 Jun 2009 08:50:00
Message: <web.4a3e2bc1e8920bcec9dd53ff0@news.povray.org>
"Cousin Ricky" <ric### [at] yahoocom> wrote:
> I have recently upgraded POV-Ray for Windows from 3.6.1 to 3.6.2 (32-bit
> edition).  Batch scripts that worked perfectly fine in the past now give me
> this error message:
>
>    Commandline processing error
>    Only /EDIT and /RENDER may be passed to previous instance

Sounds to me like you previously had "keep single instance" disabled
("OneInstance=0" in the pvengine.ini), and installing 3.6.2 changed that
setting.

POV-Ray will not accept the /nr or /exit switches in that case if an instance of
POV-Ray is already running.

> start /w pvengine /nr /exit +a +r3 -j +igamma +ogamma10 display_gamma=1.0


Post a reply to this message

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