//class里面放入这段代码
[DllImport("shell32.dll")]
public static extern int ShellExecute(IntPtr hwnd, StringBuilder lpszOp, StringBuilder lpszFile, StringBuilder lpszParams, StringBuilder lpszDir, int FsShowCmd);


//需要打开的地方插入此段代码
  ShellExecute(IntPtr.Zero, new StringBuilder("Open"), new StringBuilder("test.exe"), new StringBuilder(""), new StringBuilder(@"C:\文件夹名"), 1);

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-28
  • 2022-01-22
  • 2021-11-06
  • 2022-12-23
  • 2021-11-18
猜你喜欢
  • 2021-10-27
  • 2021-10-17
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案