Want to pass one input .txt file and output.txt file to a batch file which from java
My batch file comp.bat contains command 
GenCompress.exe file1.txt >> out.txt

i want to call this batch file from java by passing file1,file2...fileN of particular folder as a parameter sequentially.Thanks in advance kindly reply me ASAP, its urgent.
Want to pass one input .txt file and output.txt file to a batch file which from java
===

My batch file comp.bat contains command 
GenCompress.exe file1.txt >> out.txt

i want to call this batch file from java by passing file1,file2...fileN of particular folder as a parameter sequentially.Thanks in advance kindly reply me ASAP, its urgent.