POV-Ray : Newsgroups : povray.animations : how to remove number from outputed file name : Re: how to remove number from outputed file name Server Time
6 Oct 2024 09:40:50 EDT (-0400)
  Re: how to remove number from outputed file name  
From: Philippe Lhoste
Date: 25 Jul 2002 08:59:43
Message: <3d3ff63f@news.povray.org>

> Any idea how using only Post_Frame/Scene_Command and other ini settings
remove
> number from image name after rendering ?
>
> I have special ini file created for one image/frame. I call it for
original
> animation source code with apropriate settings:
>
> // INI FILE
> bonus.pov
> +FS +A0.1 +AM2 -J +R3 -D +KFI1 +KFF78 +SF10 +EF10 +W144 +H108
> Output_File_Name="70 - 'functions.inc'\10 - internal functions\bonus"
> Post_Frame_Command=cmd.exe /q /c "ren 70 - 'functions.inc'\10 - internal
functions\bonus10.bmp 70 - 'functions.inc'\10 - internal
functions\f_comma().bmp"
> // END OF INI FILE
>
> I suppose the problem is in spaces in folder names but I can't use "
becouse
> there is already one for cmd. I can't also remove cmd becouse ren won't
work
> then. Any idea ?

I would write:
Post_Frame_Command=cmd.exe /q /c ren "70 - 'functions.inc'\10 - internal
functions\bonus10.bmp" "70 - 'functions.inc'\10 - internal
functions\f_comma().bmp"

instead. I am not sure cmd.exe needs to quote the command, it takes
everything after the options as its command.
Or so I think, I haven't tested this. :-P

--
--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--
Philippe Lhoste (Paris -- France)
Professional programmer and amateur artist
http://jove.prohosting.com/~philho/
--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--


Post a reply to this message

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