In C #, I want to open explorer, and some files should be selected in this browser window. I do it like this:
string fPath = newShabonFilePath; string arg = @"/select, "; int cnt = filePathes.Count; foreach (string s in filePathes) { if(cnt == 1) arg = arg + s; else { arg = arg + s + ","; } cnt--; } System.Diagnostics.Process.Start("explorer.exe", arg);
But only the last arg file is selected. How to make all arg files be selected when explorer window opens ..? I think this is possible because I have seen many Windows applications that have this trick. In the example, when I import photos from my DSLR camera to the computer, finally, the Explorer window appears and all new imported images are selected.
Maybe there is some option so that all files are selected from the specified folder ..?
source share