Hi All,
I have a cmd file as shown below.
set ANT_HOME=%ANT_HOME%
%ANT_HOME%/bin/ant build.xml
I have written a java code to
Runtime rt = Runtime.getRuntime();
Process pr = rt.exec("cmd /c start/wait localbuild.cmd");
It works fine... opens a command prompt and runs the localbuild.cmd file .
Now i need to close this command prompt once it finished executing the cmd file.
How can i achive this...
Rajesh