Accessing windows shared drive.

Questions about Wine on Linux
Locked
vishalmthakkar
Level 1
Level 1
Posts: 7
Joined: Thu Oct 09, 2014 8:51 am

Accessing windows shared drive.

Post by vishalmthakkar »

Hello,

We have deploy c# winforms application on Linux Min 16 using wine. Application access windows shared drive
\\enhserver\common\files .

When we use this path getting exception saying path not found. On net we found option smb:\\enhserver\common\files but no luck.

Local C:\ drive we are able to read and write files but network drive we are facing issues.

Kindly help us to get this solutions.
oiaohm
Level 8
Level 8
Posts: 1020
Joined: Fri Feb 29, 2008 2:54 am

Re: Accessing windows shared drive.

Post by oiaohm »

http://wiki.winehq.org/FileLocking
Yes there are reasons at times why stuff is not simple.

https://www.winehq.org/docs/wineusr-gui ... -configure

Wine does not automatically provide access to UNC paths.
\\enhserver\common\files
This is a unc path. You will have to create the correct items under the wineprefix for application to find a unc path. Please be aware of the first link. Shared access between many programs done by wine could go horribly wrong. If you have the source code of the application porting it to run native under mono might be a very good idea from stability point of view.
vishalmthakkar
Level 1
Level 1
Posts: 7
Joined: Thu Oct 09, 2014 8:51 am

Re: Accessing windows shared drive.

Post by vishalmthakkar »

Can you help me how to create UNC path winprefix.

I am new to wine setup.
oiaohm
Level 8
Level 8
Posts: 1020
Joined: Fri Feb 29, 2008 2:54 am

Re: Accessing windows shared drive.

Post by oiaohm »

https://www.winehq.org/docs/wineusr-gui ... -configure

vishalmthakkar that link is the rough instructions. WINEPREFIX default is ~/.wine. New users it does pay to check out the user guide and the faq.
Locked