[python-win32] Changing a drive letter
Mike Driscoll
mdriscoll at co.marshall.ia.us
Mon Jan 28 16:57:46 CET 2008
Tim,
> -----Original Message-----
> From: Tim Golden [mailto:mail at timgolden.me.uk]
> Sent: Monday, January 28, 2008 9:51 AM
> To: Mike Driscoll
> Cc: python-win32 at python.org
> Subject: Re: [python-win32] Changing a drive letter
>
> 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
>
I figured you checked them before posting. I didn't mean to imply that you
didn't. I'll try to be more verbose in my future postings so that everyone
know what I'm using. I'll stick with diskpart and generalize it a bit for
future use.
Thanks again!
Mike
More information about the python-win32
mailing list