Scott,
I just tried this on Win2000. I got an error from CreateProcess as well.
So, I tried setting the "dir" to the parent and then including the commands
directory in the "executable" - that worked. So try changing to this:
<target name="Latest Test" >
<echo message="Testit is executing now" />
<exec dir="c:\" executable="testit\test" />
</target>
> -----Original Message-----
> From: Scott Matthews [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 20, 2001 11:07 AM
> To: [EMAIL PROTECTED]
> Subject: RE: "<exec>" dir question
>
>
> FYI: I have tried many combinations of the "exec" dir
> and executable line
> and they all behave the same:
> Examples: dir ="c:\testit" dir="c:\testit\" dir ="..\testit"
> executable "test" "test.exe
>
>
>
> At 10:56 AM 8/20/2001 -0400, you wrote:
>
> > > =======================================================
> > > <project name="Latest Test" default="Latest Test">
> > > <!-- latest.xml -->
> > >
> > > <!-- dummy "jar" stub to be used later -->
> > > <target name="jar">
> > > </target>
> > >
> > > <target name="Latest Test" depends="jar"
> description="testithere">
> > > <echo message="Testit is executing now"/>
> > > <exec dir="c:\testit" executable="test"/>
> > > </target>
> > >
> > > </project>
> > > =======================================================
> >
> >I believe you need to add a trailing slash to
> "c:\testit". Try it and see.
> >:)
> >
> >-Jason
>
>
>