vb.net - Open a file from a remote network share -


i trying open file server

i have

dim attachedfilepath string = "\\myserver\myshare\test.txt"  file.open(attachedfilepath, filemode.open, fileaccess.read, fileshare.read) 

this not open file.

however, if change path local there no issue.

dim attachedfilepath string = "c:\...\test.txt" 

so, there way open file remote storage?

file.open reading contents of file. use process.start launch default application file type

dim path = "\\myserver\myshare\test.txt" system.diagnostics.process.start(path) 

Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -