[python-win32] share remote drive

Tim Golden mail at timgolden.me.uk
Thu Feb 23 09:27:58 CET 2012


On 22/02/2012 22:48, pacopyc pacopyc wrote:
> Can I share a remote drive? How?

<code>
import wmi

remote = wmi.WMI ("remote-server")
remote.Win32_Share.Create (
   Path="c:/shared-folder",
   Name="myshare",
   Type=0
)

</code>

TJG


More information about the python-win32 mailing list