This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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