外壳“找不到文件"; [英] Shell "File Not Found"

查看:71
本文介绍了外壳“找不到文件";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经搜索过Google和留言板,但找不到答案.

I have searched Google and the message boards but I can''t find an answer to this.

strFileName = My.Computer.FileSystem.SpecialDirectories.MyDocuments & "\" & Me.dgvData.SelectedRows(0).Cells(0).Value.ToString & ".kml"<br />            Dim sw As StreamWriter = New StreamWriter(strFileName)<br />            sw.WriteLine(strXML)<br />            sw.Close()<br /><br />            strFileName = Chr(34) & strFileName & Chr(34)<br />            procID = Shell(strFileName, AppWinStyle.NormalFocus)



如果找不到文件而停止运行,它会立即击中Shell. ,但是该文件存在,因为它是刚刚创建的.

如您所见,我尝试用"括住文件名,但这也无济于事.

我假设自kml文件扩展名已注册到Google Earth,不需要指定GE.如果我在我的文档"中找到该文件,然后双击该文件,则该文件可以正常运行.

那里有谁可以帮助您? :):)



As soon as it hits Shell if stops with file not found, yet the file exists as it has just been created.

As you can see I tried enclosing the file name with "", but that has not helped either.

I am assuming that since a kml file extension is registered to Google Earth that I don''t need to specify GE. The file runs just fine if I find it in My Documents and double click it.

Anyone out there who can help? :) :)

推荐答案

感谢民间.关于屏幕保护程序,在我如何..."中回答的问题.

Process.start正常运行.
Thanks Folks. Question answered in the "How do I..." about the screen saver.

Process.start works just fine.


这篇关于外壳“找不到文件";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆