Open a folder using Process.Start

后端 未结 14 2236
南笙
南笙 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:27

    Use an overloaded version of the method that takes a ProcessStartInfo instance and set the ProcessWindowStyle property to a value that works for you.

    0 讨论(0)
  • 2020-11-30 23:27

    Strange.

    If it can't find explorer.exe, you should get an exception. If it can't find the folder, it should still open some folder (eg my Documents)

    You say another copy of Explorer appears in the taskmanager, but you can't see it.

    Is it possible that it is opening offscreen (ie another monitor)?

    Or are you by any chance doing this in a non-interactive service?

    0 讨论(0)
提交回复
热议问题