Open a folder using Process.Start

后端 未结 14 2316
南笙
南笙 2020-11-30 22:56

I saw the other topic and I\'m having another problem. The process is starting (saw at task manager) but the folder is not opening on my screen. What\'s wrong?



        
14条回答
  •  悲哀的现实
    2020-11-30 23:21

    Does it open correctly when you run "explorer.exe c:\teste" from your start menu? How long have you been trying this? I see a similar behavior when my machine has a lot of processes and when I open a new process(sets say IE)..it starts in the task manager but does not show up in the front end. Have you tried a restart?

    The following code should open a new explorer instance

    class sample{
    
    static void Main()
    {
      System.Diagnostics.Process.Start("explorer.exe",@"c:\teste");
    }
    }
    

提交回复
热议问题