[Mono-dev] Access Windows share as my C# application runs on Linux under mono

shoeb.shaikh shoeb.amd.com at gmail.com
Mon Jan 6 20:48:14 UTC 2014


I am writing an application to transfer files over the network. I hit a
roadblock when my application runs on Linux (under mono and normal user) 
I try to access a file on the network (present on a windows file share) I
keep getting a FileNotFoundException coz the shared path
"\\<hostname>\dir\file" get pre pended with the path from where the
application is running.
I tried using an alternative, libsmbclient functions which basically appends
smb://<hostname>/<dir>/<file>. This works perfect when the remote machine is
linux, but craps out when the remote machine is windows. 
Could someone please suggest an approach, where I could programatically copy
a file on Windows share from a Linux box.

Thanks in advance!



--
View this message in context: http://mono.1490590.n4.nabble.com/Access-Windows-share-as-my-C-application-runs-on-Linux-under-mono-tp4661665.html
Sent from the Mono - Dev mailing list archive at Nabble.com.


More information about the Mono-devel-list mailing list