[python-win32] Changing a drive letter (original) (raw)
Mike Driscoll mdriscoll at co.marshall.ia.us
Mon Jan 28 16:43:26 CET 2008
- Previous message: [python-win32] Python ADO and Date Time Field in Access
- Next message: [python-win32] Changing a drive letter
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Tim (and Roger),
Message: 7 Date: Fri, 25 Jan 2008 15:32:34 +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: <479A0112.9040705 at timgolden.me.uk> 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/win32howdoi/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
- Previous message: [python-win32] Python ADO and Date Time Field in Access
- Next message: [python-win32] Changing a drive letter
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]