Mapping a network drive
Roger Upole
rupole at compaq.net
Thu Jun 15 18:47:31 EDT 2000
You should be able to use the COM interface for Windows Scripting host.
import win32com.client
wnt=win32com.client.Dispatch('Wscript.Network')
wnt.MapNetworkDrive('z:','//someserver/someshare')
To test it, just try to access the drive:
os.listdir('z:') or something similar.
HTH
Roger Upole
"Pieter Claerhout" <PClaerhout at CREO.BE> wrote in message
news:2B1262E83448D211AE4B00A0C9D61B03013011E2 at msgeuro1.creo.be...
> Hello to all,
>
> anyone an idea how I can map a drive using pythonwin, and see
> if it was successfull or not? I'm running python 1.5.2 on WinNT 4.
>
> Pieter
>
More information about the Python-list
mailing list