I need to build the following command using ProcessBuilder:
\"C:\\Program Files\\USBDeview\\USBDeview.exe\" /enable
As far as I understand, since ProcessBuilder has no idea how parameters are to be passed to the command, you'll need to pass the parameters separately to ProcessBuilder;
ArrayList test = new ArrayList();
test.add("\"C:\\Program Files\\USBDeview\\USBDeview.exe\"");
test.add("/enable");
test.add("\"My USB Device\"");