软件环境:VS2005下的VB
运行环境:Windows CE 5.0设备我用如下代码创建进程:
Shell("\Windows\explorer.exe", AppWinStyle.MaximizedFocus, False, -1)调试运行
提示"未处理的“System.IO.FileNotFoundException”类型的异常出现在Microsoft.VisualBasic.dll中"
我查找了一下相应目录,是有这个.exe文件的
对VB不熟,请大家指点。

解决方案 »

  1.   

    FileNotFoundException 
     53 
     Shell 找不到 PathName 文件。
     
    路径写全试试~~或者换一个,explorer.exe已在运行~
      

  2.   

    Shell("\Windows\explorer.exe", AppWinStyle.MaximizedFocus, False, -1)
    我这样弄,没有错误。
    但运行的时候,总是提示,File Not Found!
    但是Windows目录下是有这个explorer.exe文件的呀。
    我的是Windows CE 5.0系统设备
    真是郁闷啊。
      

  3.   

    可以的。
    我又换到了Flash的路径下
    Shell("\ResidentFlash\DTest.exe", AppWinStyle.MaximizedFocus, False, -1)
    DTest.exe是我自己的一个程序
    也是File not found
    应该是路径不应该这么写
    不知道该怎么写
    另外VB用这个shell创建进程是正确的方向吧?
      

  4.   

    智能设备下不支持shell
    唉。
      

  5.   

    Shell("C:\Windows\explorer.exe", AppWinStyle.MaximizedFocus, False, -1) 
    或者
    Shell("C:\WinNT\explorer.exe", AppWinStyle.MaximizedFocus, False, -1) 
      

  6.   

    总不至于用
    Shell("C:\\Windows\\explorer.exe", AppWinStyle.MaximizedFocus, False, -1) 
      

  7.   

    上面的通通不行,我的是CE 5.0的系统。没有C盘的。
    而且刚才MSDN上写的
    智能设备不支持shell
    崩溃
      

  8.   

    2005下创建进程:Dim sFile As String = "C:\Windows\system32\calc.exe"
    Dim newProc As Diagnostics.Process
    newProc = Diagnostics.Process.Start(sFile)
      

  9.   

    error BC30311: 类型“String”的值无法转换为“System.Diagnostics.ProcessStartInfo”。
    有这个语法错误。
      

  10.   

    http://www.topsage.com/computer/2009/0608/article_927.html看看这里的招管不管用.调用API的.