[Bf-committers] system() with spaces
Alexander Ewering
blender at instinctive.de
Sun Nov 19 00:04:50 CET 2006
On Sat, 18 Nov 2006, Tony Agee wrote:
> And it doesn't work for me either, but I observe that the error on the
> console after a failure in blender, is the same as the error I get when I
> run (from a command prompt):
>
> "C:/Program Files/Blender Foundation/Blender/blender.exe -a
> c:\tmp\0001_0020.avi"
Well, this looks totally wrong, of course. What we're trying to tell the
system is:
"This is a path to an executable which may contain spaces" -switch1 \
-switch2 -switch3 "This is a path to a movie which may contain spaces"
And this is the code that generates the line:
sprintf(str, "\"%s\" -a -p %d %d \"%s\"", bprogname, pos[0], pos[1], file);
Unless I'm again totally blind and too sleep-deprived, this code generates
what I stated above, and should work (it does work on Linux). Why does it
not work on win32?
| alexander ewering instinctive mediaworks
| xx-mail.com/instinctive http://www.instinctive.de
More information about the Bf-committers
mailing list