I\'m using ProcessBuilder to run a Windows executable...the exact command I need to run is :
\"C:\\Program Files\\CCBU\\CCBU.exe\" -d\"C:\\My Data\\projects
Add individual strings without "double" quotes..
commands.add ( "C:\\Program Files\\CCBU\\CCBU.exe" );
commands.add ( "-d");
commands.add ("C:\\My Data\\projects\\ccbu\\ciccb-report.xls" );
commands.add ( "-tf");
commands.add("C:\\Program Files\\CCBU\\loss-billing-filters.txt" );
commandExecutor = new SystemCommandExecutor(commands);
ProcessBuilder will take care of necessary handling of args.
Pull up comment:
Jayan, You're idea got me thinking : The following worked :
commands.add ( "-dC:\\My Data\\projects\\ccbu\\ciccb-report.xls" ); commands.add ( "-tfC:\\Program Files\\CCBU\\loss-billing-filters.txt"
); – lincolnadym