Hi All,
I wrote code for executing batch file using java.but its not working..
Its Urgent..please. .:)
please Help me out..
I wrote code for executing batch file using java.but its not working..
Code:
package batchapp;
import java.io.IOException;
/**
*
* @author mahapatra.a
*/
public class BatchApp {
/**
* @param args the command line arguments
*/
public static void main(String[] args) throws IOException, InterruptedException {
// TODO code application logic here
Process p = Runtime.getRuntime().exec("\\\\192.168.1.xxx\\D\\D eleteME\\run.bat");
p.waitFor();
System.out.println("deleted...");
}
}
please Help me out..
Comment