Yafray problems under windows

How do you get yafray to work under windows XP? I know how to use yable, just not yafray. when I go to the directory with the yable export file in a DOS window and type

yafray <untitled.xml>

then it says:

The syntax of the command is incorrect.

and when I type

yafray [untitled.xml]

it says

'yafray' is not recognized as an internal or external command,
operable program or batch file.

Can anyone help me? I’ve installed yafray already, and untitled is my filename.

Either put the path to your yafray executable into your path variable, or do something like so:

c:\yafray\yafray.exe untitled.xml

(Note, no brackets around untitled.xml)

The above assumes you put it in the c:\yafray folder. If you put it somewhere else, like program files then substitute that. However, if it’s in a path with spaces, you need to put it in quotes like so:

“c:\program files\yafray\yafray.exe” untitled.xml

For XP, if you wanted to put that path in your PATH variable, go to the control panel->system->advanced->environment variables. In the system variables should be one named PATH. Add the path to the end (or beginning) of the value already there, separated by a semi-colon. (e.g. if you installed it to c:\yafray, you would add ;c:\yafray to the end. If c:\program files\Yafray, you would add ;“c:\program files\yafray”)

Hope that helps.