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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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