[Pythonmac-SIG] Connecting to Windows shares

David Hughes dfh at forestfield.co.uk
Thu Sep 22 12:36:00 CEST 2005


> *From:* dfh at forestfield.co.uk (David Hughes)
> *To:* pythonmac-sig at python.org
> *Date:* Thu, 22 Sep 2005 11:12 +0100 (BST)
> 
> > *From:* Simon Brunning <simon.brunning at gmail.com>
> > *To:* pythonmac-sig at python.org
> > *Date:* Thu, 22 Sep 2005 10:24:34 +0100
> > 
> > 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.
> > 
> > --
> > Cheers,
> > Simon B,
> 
> If the Windows partition you've attached appears as an 'ejectable' 
> drive in the leftmost Finder pane, you can see it and its contents 
> under /volumes using a Terminal session. Here, it appears as a 
> directory of the form "<Workgroup>;<hostname>". A problem arises if you 
> attach more than one partition, as they are then given suffixes '-1' 
> etc that depend on the order you attached them.
> 
> Regards,
> 
> David Hughes
> Forestfield Software

...but of course, having just pressed the send button, I see that your 
actual question is how do I *connect* to the Windows share from a script - 
and I'm sorry but I don't know :-<

DH 


More information about the Pythonmac-SIG mailing list