[python-win32] Changing a drive letter

Mike Driscoll mdriscoll at co.marshall.ia.us
Fri Jan 25 15:49:33 CET 2008


Tim,

> Date: Thu, 24 Jan 2008 20:55:55 +0000
> From: Tim Golden <mail at timgolden.me.uk>
> Subject: Re: [python-win32] Changing a drive letter
> Cc: python-win32 at python.org
> Message-ID: <4798FB5B.6000205 at timgolden.me.uk>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> Paul Koning wrote:
> > I agree.  If you do want to use an API rather than a 
> subprocess, WMI 
> > might serve.  The biggest drawback of WMI is that the 
> documentation is 
> > partly nonexistent and, when it does exist, is of very low quality.
> > 
> > On the other hand, the Python WMI module is quite nice.
> 
> Why, thank you! <grin>
> 
> I did a bit of research and it seems that you can only do 
> this via WMI from Win2k3 onwards (which I assume your users, 
> Mike, are not running on their desktops?). There are a couple 
> of workaround suggestions involving the registry and/or the 
> mountvol command, but I don't think they amount to anything 
> better than the original proposal. Good luck!
> 
> TJG
> 


You are correct. We do not have Win2k3 on any desktops, nor are we running
Vista. We have stuck with XP. Since I work for the government, we have
enough old equipment and software that upgrading would not only be too
costly monetarily but also in time and aggravation. Besides, we just got
done upgrading all the Win98 machines to XP last year. I'll give Roger's
idea a whirl (see other post) and see if it's more reliable than diskpart.

Mike



More information about the python-win32 mailing list