Friday, March 21, 2008

Reading files over NETBeui Protocol

I was trying to copy a file from LAN using NETBeui protocol. The destination workstation had TCP/IP and NETBeui, the source workstation only had NETBeui.

I tried Network.DownloadFile(...) in VB.NET and specified path as
"\\host\path\to\file\filename.ext"

but no luck.

Googled and googled, but found nothing.

Then atlast, I tried FileSystem.CopyFile(...) : guess what, it worked! Gosh!!! I rejected using this method on my first thought and now I found out this is the way to do it.

Ok, if you go through the same problem, simply try this.

No comments: