I want to create a batch file through java program in one method and execute it in another method.
File file=new File("C:\\samplenote.bat");
dos.writeBytes("ECHO happy >> myBatch.txt");
when i want to create a batch file with more than one command . all commands in the batch file is written in the same line.
ECHO happy >> myBatch.txtSTART note.txt