打开一个文件,我想从一个服务器从远程网络共享
打开一个文件,我现在有
Dim attachedFilePath As String = "\\myserver\myshare\test.txt"
File.Open(attachedFilePath, FileMode.Open, FileAccess.Read, FileShare.Read)
这不打开文件。
但是,如果我将路径更改为本地,则不存在任何问题。
Dim attachedFilePath As String = "c:\...\test.txt"
那么,有没有一种方法来打开从远程存储文件?
你会得到什么异常? – 2010-01-14 21:02:46
也不例外,该行似乎执行没有问题,但记事本没有打开,也没有显示任何内容。 – 2010-01-14 21:04:45