POV-Ray : Newsgroups : povray.general : Spaces in command line Server Time
19 Nov 2024 18:21:20 EST (-0500)
  Spaces in command line (Message 1 to 8 of 8)  
From: Gail Shaw
Subject: Spaces in command line
Date: 7 Feb 2002 09:41:08
Message: <3c629204@news.povray.org>
Is there any way to call Pov-ray (windows) from the command line with an
output file
name with spaces in? I'm trying to do the following

C:\Program Files\POV-Ray for Windows v3.5\bin\pvengine.exe /RENDER
"C:\Program Files\Microsoft Visual Studio\VB98\TexEdit\Example3.pov" +H200
+W200 +FN +oC:\Program Files\Microsoft Visual Studio\VB98\TexEdit /NR /EXIT

I've tried putting the path in single quotes, I've tried double quotes.
Neither works. Without quotes I get a "program.png"
in the root dir of C and I can't find anything on this in the help file.

Thanks
Gail
--
#macro G(H,S)disc{0z.4pigment{onion color_map{[0rgb<sin(H/pi)cos(S/pi)*(H<6)
cos(S/pi)*(H>6)>*18][.4rgb 0]}}translate<H-5S-3,9>}#end G(3,5)G(2,5.5)G(1,5)
G(.6,4)G(.5,3)G(.6,2)G(1,1)G(2,.5)G(3,.7)G(3.2,1.6)G(3.1,2.5)G(2.2,2.5)G(9,5
)G(8,5.5)G(7,5)G(7,4)G(7.7,3.3)G(8.3,2.7)G(9,2)G(9,1)G(8,.5)G(7,1)//GS


Post a reply to this message

From:
Subject: Re: Spaces in command line
Date: 7 Feb 2002 09:57:54
Message: <nc556u86ap6qk6p4tj1c84lfc4bm9df8f3@4ax.com>
On Thu, 7 Feb 2002 16:40:44 +0200, "Gail Shaw" <gsh### [at] monotixcoza> wrote:
>C:\Program Files\POV-Ray for Windows v3.5\bin\pvengine.exe /RENDER
>"C:\Program Files\Microsoft Visual Studio\VB98\TexEdit\Example3.pov" +H200
>+W200 +FN +oC:\Program Files\Microsoft Visual Studio\VB98\TexEdit /NR /EXIT

try replace whole +o statement with

Output_File_Name="C:\Program Files\Microsoft Visual Studio\VB98\TexEdit"

ABX


Post a reply to this message

From: bob h
Subject: Re: Spaces in command line
Date: 7 Feb 2002 11:03:21
Message: <3c62a549@news.povray.org>

news:nc556u86ap6qk6p4tj1c84lfc4bm9df8f3@4ax.com...
>
> try replace whole +o statement with
>
> Output_File_Name="C:\Program Files\Microsoft Visual Studio\VB98\TexEdit"

Without trying that I must say that I don't believe you can use the INI
keywords on a command line prompt.  One never can tell until one tries
though  :-)

That program.png is just the failed attempt at making a c:\program (files)
render I guess.
Have you tried the shortened naming method, Gail?
+oC:\Progra~1\Micros~1\VB98\TexEdit
The first six characters then a tilde ~ and whatever number needed (Might be
several Microsoft folders).

bob h


Post a reply to this message

From:
Subject: Re: Spaces in command line
Date: 7 Feb 2002 11:13:33
Message: <7i956ucj1mrtn4uiimvqc01iqmo7cd4355@4ax.com>
On Thu, 7 Feb 2002 10:02:55 -0600, "bob h" <omn### [at] charternet> wrote:
> Without trying that I must say that I don't believe you can use the INI
> keywords on a command line prompt.  One never can tell until one tries
> though  :-)

I have tested this with command box, but I remember I've used it with command
line. But it looks like undocumented feature becouse documentation at the end of
5.1.1 says: "Almost all + or - switches have an equivalent option which can be
used in an INI file".

> Have you tried the shortened naming method, Gail?
> +oC:\Progra~1\Micros~1\VB98\TexEdit

AFAIK it can fail - for example if you have Microsoft Office folder created
earlier then Microsoft Visual Studio folder.

ABX


Post a reply to this message

From: Gail Shaw
Subject: Re: Spaces in command line
Date: 7 Feb 2002 13:26:15
Message: <3c62c6c7@news.povray.org>
bob h wrote in message <3c62a549@news.povray.org>...

>news:nc556u86ap6qk6p4tj1c84lfc4bm9df8f3@4ax.com...
>

>Have you tried the shortened naming method, Gail?
>+oC:\Progra~1\Micros~1\VB98\TexEdit
>The first six characters then a tilde ~ and whatever number needed (Might
be
>several Microsoft folders).

Can't do that as the entire command line is generated by VB code depending
on where povray is installed and where the application is question is
installed.
As far as I can tell VB can't give me the shortened path.

Gail
*************************************************************************
* gsh### [at] monotixcoza                *   Chaos, disorder and panic      *
* http://www.rucus.ru.ac.za/~gail/   *   My job here is done.           *
*************************************************************************
* Just think of me as the storm before the calm     Magic: The Gathering*
*************************************************************************


Post a reply to this message

From: Grey Knight
Subject: Re: Spaces in command line
Date: 7 Feb 2002 14:58:38
Message: <3C62DC64.A6DA22F7@namtar.qub.ac.uk>
Gail Shaw wrote:
> Can't do that as the entire command line is generated by VB code depending
> on where povray is installed and where the application is question is
> installed.
> As far as I can tell VB can't give me the shortened path.

Try parsing the string, stripping out spaces (and dots; I think short
folder names ignore dots), then
#if(strlen(Path)>8)
  #declare Path=concat(substr(Path,0,6),"~1")
#end
Well, more or less. Needs to be done for each folder name, AND you need
to change the number depending on the creation date of the folder and
all similar folders. Heesh.

-- 
signature{
  "Grey Knight" contact{ email "gre### [at] yahoocom" }
  site_of_week{ url "http://digilander.iol.it/jrgpov" }
}


Post a reply to this message

From: Gail Shaw
Subject: Re: Spaces in command line
Date: 8 Feb 2002 00:50:49
Message: <3c636739@news.povray.org>

news:nc556u86ap6qk6p4tj1c84lfc4bm9df8f3@4ax.com...
>
> Output_File_Name="C:\Program Files\Microsoft Visual Studio\VB98\TexEdit"
>

That works. Thanks very much

Gail
--
#macro G(H,S)disc{0z.4pigment{onion color_map{[0rgb<sin(H/pi)cos(S/pi)*(H<6)
cos(S/pi)*(H>6)>*18][.4rgb 0]}}translate<H-5S-3,9>}#end G(3,5)G(2,5.5)G(1,5)
G(.6,4)G(.5,3)G(.6,2)G(1,1)G(2,.5)G(3,.7)G(3.2,1.6)G(3.1,2.5)G(2.2,2.5)G(9,5
)G(8,5.5)G(7,5)G(7,4)G(7.7,3.3)G(8.3,2.7)G(9,2)G(9,1)G(8,.5)G(7,1)//GS


Post a reply to this message

From: Gail Shaw
Subject: Re: Spaces in command line
Date: 8 Feb 2002 05:07:32
Message: <3c63a364@news.povray.org>
"Grey Knight" <s16### [at] namtarqubacuk> wrote in message
news:3C62DC64.A6DA22F7@namtar.qub.ac.uk...

> Try parsing the string, stripping out spaces (and dots; I think short
> folder names ignore dots), then
> #if(strlen(Path)>8)
>   #declare Path=concat(substr(Path,0,6),"~1")
> #end
> Well, more or less. Needs to be done for each folder name, AND you need
> to change the number depending on the creation date of the folder and
> all similar folders. Heesh.
>

A little off topic.

The short path can be discovered using windows API calls

Declare Function GetShortPathName Lib "kernel32" _
      Alias "GetShortPathNameA" (ByVal lpszLongPath As String, _
      ByVal lpszShortPath As String, ByVal cchBuffer As Long) As Long


Gail

--
#macro G(H,S)disc{0z.4pigment{onion color_map{[0rgb<sin(H/pi)cos(S/pi)*(H<6)
cos(S/pi)*(H>6)>*18][.4rgb 0]}}translate<H-5S-3,9>}#end G(3,5)G(2,5.5)G(1,5)
G(.6,4)G(.5,3)G(.6,2)G(1,1)G(2,.5)G(3,.7)G(3.2,1.6)G(3.1,2.5)G(2.2,2.5)G(9,5
)G(8,5.5)G(7,5)G(7,4)G(7.7,3.3)G(8.3,2.7)G(9,2)G(9,1)G(8,.5)G(7,1)//GS


Post a reply to this message

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