[Pythonmac-SIG] Connecting to Windows shares

Ronald Oussoren ronaldoussoren at mac.com
Fri Sep 23 07:35:13 CEST 2005


On 22-sep-2005, at 14:28, Simon Brunning wrote:

> On 9/22/05, Simon Brunning <simon.brunning at gmail.com> wrote:
>
>> I want to use a python script to copy some files from a Windows share
>> to my Mac. Connecting to a Windows share with Finder is easy, but how
>> do I do it from a script? (Python 2.4.1 on OSX 10.4.2, if it matters.
>>
>
> Found it. You need to invoke mount_smbfs via subprocess or whatever.

Another option is scripting smbclient(1).

Ronald

>
> --
> Cheers,
> Simon B,
> simon at brunningonline.net,
> http://www.brunningonline.net/simon/blog/
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2105 bytes
Desc: not available
Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20050923/1fb02a8a/smime.bin


More information about the Pythonmac-SIG mailing list