Make windows network share looks like directory under root?

mxnerd

Diamond Member
Jul 6, 2007
6,799
1,103
126
I'm a newbie to linux and Ubuntu 8 desktop and I want to run windows programs accross the network using WINE Windows emulation.

The Windows programs are stored on Windows 2003 server "srv" in folder level1

in this folder there is a main menu program that will call other sub-system program under other sub-folders. The programs does not require any installation, it can be run directly.

The directory structure look like this


\level1\sysname\menu.exe
\level1\sysname\sys1\sys1.exe
\level1\sysname\sys2\sys2.exe
\level1\sysname\sysn\sysn.exe
\level1\sysname\sysdata\*.dat
\level1\sysname\sysconfig\config.ini

and I shared level1 folder over the network.

I have confirmed that the program ran fine if I copy the whole \sysname folder onto Ubuntu root directory.

The problem with this system is each exe file looks for absolute directory sysname under the root, so when ran over network, the directory must looks like the level1 folder is not there. So just connected to the share, with a bookmark or not, when you ran the program, the exe files complain they can't find \sysname\sysconfig\config.ini file.

My question is, how can I make or mount a remote windows share folder under the Ubuntu root directory so these exe files can run correctly?

Thanks!!
 

Colt45

Lifer
Apr 18, 2001
19,720
1
0
mount -t smbfs //winfileserver/shared_dir /some/mount/point


so in your case,
mount -t smbfs //servername/level1 /level1

should work, i think.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Just setup the drive properly in WINE, you can specify any directory be assigned a drive letter.
 

mxnerd

Diamond Member
Jul 6, 2007
6,799
1,103
126
The files are stored on Windows Server, and I wanted to run these program from Linux workstation, not vice versa (use Linux as SMB server).

Colt & n0c's advices did not work.

you can specify any directory be assigned a drive letter

How?
 

mxnerd

Diamond Member
Jul 6, 2007
6,799
1,103
126
Thanks. I guess I have to spend sometime figuring out exactly what above 3 commands do and how they works before going further.

 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
winecfg is a GUI app that lets you configure WINE, once you have the SMB/CIFS share mapped somewhere just tell WINE to use that directory for a specific drive letter.