POV-Ray : Newsgroups : povray.general : Spaces in command line : Re: Spaces in command line Server Time
6 Aug 2024 19:26:16 EDT (-0400)
  Re: Spaces in command line  
From: Gail Shaw
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.