I'm trying to use ProcessBuilder in order to highlight several files contained in a folder. When I run the following code:
List<String> params = java.util.Arrays.asList("explorer.exe", "/select,C:\\test\\file1.txt",
"/select,C:\\test\\file2.txt");
ProcessBuilder b = new ProcessBuilder(params);
only the second file is highlighted. Any idea on how to fix it?
Thank you in advance.