[Pythonmac-SIG] Connecting to Windows shares

Jon Rosebaugh chairos at gmail.com
Fri Sep 23 08:40:55 CEST 2005


On 9/23/05, Ronald Oussoren <ronaldoussoren at mac.com> wrote:
>
> 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

Wouldn't running 'open smb://whatever' work too?


More information about the Pythonmac-SIG mailing list