Hi, I am having the sample code like this.
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author padmaja
*/
import java.io.*;
class Test{
public static void main(String arg[]){
try{
String command = "cmd /C start C:/excel.bat";
Runtime rt = Runtime.getRuntime();
Process pr = rt.exec(command);
}catch (IOException e) {
e.printStackTrace();
}
}
}
I am opening excel sheet by using the above code.
The problem is if use a thread to open excel sheet every 15 minutes then multiple excel sheet will be dispalyed. I want to close the running of a batch file from the above code itself.
Thanks in advance