I have one .exe file which is only run on cmd its have own functionality which oprated by some command..
Like ABC.exe -h 1234
So the question is how do i execute that kind of command using java..
I have try something like this
Process p=new process ();
P.exec ("ABC.exe",null,"path of the file ");
But its not working