Tim (and Roger), > > Message: 7 > Date: Fri, 25 Jan 2008 15:32:34 +0000 > From: Tim Golden <[EMAIL PROTECTED]> > Subject: Re: [python-win32] Changing a drive letter > Cc: python-win32@python.org > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Mike Driscoll wrote: > > 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. > > Well I've already snitched it (and your solution) for > a how-do-I page (with suitable acknowledgement, of course): > > http://timgolden.me.uk/python/win32_how_do_i/change-a-drive-le > tter.html > > so thanks to both of you for bringing the subject to light. > > TJG >
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.') I'm not sure what the issue is, but I suspect that Windows is being dumb. I don't think this call understands the paths since they are mapped to a Linux server path which runs Samba. However,I tried it with another drive that is mapped to a location on one of our NT4 machines and get the same error. Can someone get this to work on newer software? Such as an XP client with a Win2k3 server? Mike _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32