windows - automatic Samba share script -


i have ubuntu 10.04 server running samba.

i want write script (for linux or windows computer) that, given ip of server , path of shared samba folder, can automatically create "network drive" icon on desktop. both machines on local network.

i realize different linux/windows.

any suggestions? i'm not sure start. thanks!

for windows machines, want @ net use. instance, map share "data" on 192.168.0.2 z:, you'd write net use z: \\192.168.0.2\data. there lot of options, check net use complete list. instance, might want @ /persistent, automatically recreate share every time log in. or put in .bat file executed when logging in.

on linux, think you'd have root this, it'd require mount command. know desktop environments (such gnome) around this, acually mount need root. command mount same share @ mountpoint /mnt/data mount //192.168.0.2/data /mnt/data, if allow access. if require logon, need add -o user=youruser. prompted password. (note requires cifs/smb drivers work)


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -