0

While navigating to the folder through Process.Start(folderPath), I wish to see the newly created files as highlighted/Selected. Everytime I open the instance of my wpf application, there are some Log files which get created at a specified folder path. I want to see those new created files as highlighted/Selected.

        private void ShowFolder()
        {

           //Open the folder path through Process.Start 
           //sLogFolderPath is the folder path where log files are created

           System.Diagnostics.Process.Start(sLogFolderPath);


         //When folder is opened through Process.Start, 
        //I would like to see the newly created files as highlighted.

        }
DotNetSpartan
  • 931
  • 4
  • 20
  • 41
  • Check out [this answer](https://stackoverflow.com/questions/13680415/how-to-open-explorer-with-a-specific-file-selected) – Sefe May 08 '18 at 13:00
  • Possible duplicate of [Opening a folder in explorer and selecting a file](https://stackoverflow.com/questions/334630/opening-a-folder-in-explorer-and-selecting-a-file) – Micha Wiedenmann May 08 '18 at 13:00
  • [This answer](https://stackoverflow.com/questions/9355/programmatically-select-multiple-files-in-windows-explorer) might also help you out. – Sefe May 08 '18 at 13:10
  • @MichaWiedenmann: Your provided duplicate does not allow for multiple files to be selected. – Sefe May 08 '18 at 13:10
  • How about https://stackoverflow.com/questions/9355/programmatically-select-multiple-files-in-windows-explorer – Micha Wiedenmann May 08 '18 at 13:14
  • @Sefe - I've edited the question. I would like to see the newly created files in that application instance as selected when I navigate to the folder path. – DotNetSpartan May 08 '18 at 13:22
  • Have you checked the links in the comments? – Sefe May 08 '18 at 19:08

0 Answers0