软件环境:VS2005下的VB
运行环境:Windows CE 5.0设备我用如下代码创建进程:
Shell("\Windows\explorer.exe", AppWinStyle.MaximizedFocus, False, -1)调试运行
提示"未处理的“System.IO.FileNotFoundException”类型的异常出现在Microsoft.VisualBasic.dll中"
我查找了一下相应目录,是有这个.exe文件的
对VB不熟,请大家指点。
运行环境:Windows CE 5.0设备我用如下代码创建进程:
Shell("\Windows\explorer.exe", AppWinStyle.MaximizedFocus, False, -1)调试运行
提示"未处理的“System.IO.FileNotFoundException”类型的异常出现在Microsoft.VisualBasic.dll中"
我查找了一下相应目录,是有这个.exe文件的
对VB不熟,请大家指点。
53
Shell 找不到 PathName 文件。
路径写全试试~~或者换一个,explorer.exe已在运行~
我这样弄,没有错误。
但运行的时候,总是提示,File Not Found!
但是Windows目录下是有这个explorer.exe文件的呀。
我的是Windows CE 5.0系统设备
真是郁闷啊。
我又换到了Flash的路径下
Shell("\ResidentFlash\DTest.exe", AppWinStyle.MaximizedFocus, False, -1)
DTest.exe是我自己的一个程序
也是File not found
应该是路径不应该这么写
不知道该怎么写
另外VB用这个shell创建进程是正确的方向吧?
唉。
或者
Shell("C:\WinNT\explorer.exe", AppWinStyle.MaximizedFocus, False, -1)
Shell("C:\\Windows\\explorer.exe", AppWinStyle.MaximizedFocus, False, -1)
吧
而且刚才MSDN上写的
智能设备不支持shell
崩溃
Dim newProc As Diagnostics.Process
newProc = Diagnostics.Process.Start(sFile)
有这个语法错误。