I apologize to all, but my above code won't work with paths that have
embedded spaces.  It also turns out that the "net use" command inserts a
carriage-return/line-feed between the Path and Network fields when the last
character position of the Path exceeds 80 characters.

My above approach seemed  simpler, but that's just because I posted it
before adequate testing.  Unfortunately, in order to make it actually work
for all cases, the implementation becomes more complex and begins to look
like a kludge.  So my recommendation is to use Tim's ctypes approach.



--
View this message in context: 
http://python.6.x6.nabble.com/Tutor-getUncPath-mappedDrive-tp4652304p5045785.html
Sent from the Python - tutor mailing list archive at Nabble.com.
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to