首页 > 解决方案 > 浏览文件夹路径时高亮应用实例新创建的文件

问题描述

通过 Process.Start(folderPath) 导航到文件夹时,我希望看到新创建的文件突出显示/选中。每次我打开我的 wpf 应用程序的实例时,都会在指定的文件夹路径中创建一些日志文件。我想将那些新创建的文件视为突出显示/选中。

        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.

        }

标签: c#wpffiledirectoryprocess.start

解决方案


推荐阅读