pojowsh技术开发之家

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

手头上的项目遇到要在WinCE上层软件中打开文件夹目录的需求,在网上查了一些资料,初步确定使用Process类,经过试验,下述方法成功实现,没有抛出异常。

通过msdn帮助文档可知,Process的Start方法在wince下只支持3种重载,如下图

private void btnCaptrueFolder_Click(object sender, EventArgs e)
        {

      Process myProcess = new Process();
      myProcess.StartInfo.FileName = @"Windows\explorer.exe";
      myProcess.StartInfo.Arguments = @"\Storage Card\Images";
      try
      {
            myProcess.Start();
      }
      catch (Exception e1)
      {
            MessageBox.Show(e1.ToString());
      }

   }

posted on 2011-05-09 16:10  pojowsh  阅读(1454)  评论(0编辑  收藏  举报