Hi !
I am trying to run
Ant from my console application. I don't want to use
a batch file. I am having problems with my command and need some help.
My build script is in D:\apps\serverapps
And here is the command
String[] cmd = new String[4];
cmd[0] = "cmd.exe" ;
cmd[1] = "/c" ;
cmd[2] = "cd d:\\apps\\serverapps";
cmd[3]="ant";
I am getting the following error message:
"The system cannot find the path specified".
If I don't specify the fourth array element or fourth command then I dont get any error. But on specifying the fourth command I get error, be it "ant" or "cd" or "dir".
Danish
[ February 25, 2004: Message edited by: Danish Shaukat ]