Sorry to confuse you. I was just trying to figure out why you needed to use ant to put a path line in the batch file. The example is so simple I'm thinking if you need it there just put it there. Now if you need different values there for different environments I can see how ant can help with filters/tokens. Or maybe you need that path in LOTS of places and you only want to have to change it in one place when necessary.
Ant uses a token separator as @, put values in text files that you want replaced using the separator and a token such as "SOME_PATH":
file needs path:
@SOME_PATH@
properties file or build file defines replacement values
SOME_PATH=...put info here...
see
ant manual,
e.g.,
Replace Task or
Copy Task.
This example is from a build file that I inherited, just to show you're not limited to replacing a simple property value:
From copy task info in ant manual:
Copy a set of files to a directory, replacing @TITLE@ with Foo Bar in all files.
I hope that points you in the right direction.
[ February 25, 2005: Message edited by: Carol Enderlin ]