[python-win32] Changing a drive letter (original) (raw)

Tim Golden mail at timgolden.me.uk
Mon Jan 28 16:50:49 CET 2008


Mike Driscoll wrote:

Just an FYI here. When using Roger's method, I get a traceback, so you might want to add some caveats to your "How-do-I":

Traceback (most recent call last): File "\someServer\scripts\changeDriveLetter.py", line 4, in -toplevel- v = win32file.GetVolumeNameForVolumeMountPoint('L:\') error: (3, 'GetVolumeNameForVolumeMountPoint', 'The system cannot find the path specified.')

Well I did try it before posting it up (I always do!) and it worked fine for me. That said, I'm using XP against a Win2k3 and I don't have access to NT4 or Samba. I note, though, that the msdn page [1] indicates "Requires Windows Server 2008, Windows Server 2003, or Windows 2000 Server." which would seem to rule out NT4 and possibly Samba. Shame.

TJG



More information about the python-win32 mailing list