I hae been trying to run some arguments in the cmd through java and it isn't giving me any errors. I know it is opening cmd and it executes the last argument to create the file. The only problem is that the output is not writed into the file. If I run the same exact line directly in the cmd it works perfectly. I'm just alittle stumped why it is doing what its doing
Thanks
try {
String[] commands = {"C:/CohMetrix2007/Data/ParseIT.exe ","C:/CohMetrix2007/Data/EN/ ", "-P ", "C:/CohMetrix2007/Data/EN/sometxt ", ">C:/CohMetrix2007/Data/EN/second "};
Runtime rt = Runtime.getRuntime();
Process p = rt.exec("cmd.exe", commands);
}
pkollmyr
Godspeed