Re: Rename of .mdb file -- lock

2008-12-15 Thread MRAB
Scott David Daniels wrote: noydb wrote: I have the code below, which unzips a zipfile containing only one file. Once it is unzipped, I want to rename the file based on a user provided name. But I get this (WindowsError: [Error 32] The process cannot access the file because it is being used by

Re: Rename of .mdb file -- lock

2008-12-15 Thread Scott David Daniels
noydb wrote: I have the code below, which unzips a zipfile containing only one file. Once it is unzipped, I want to rename the file based on a user provided name. But I get this (WindowsError: [Error 32] The process cannot access the file because it is being used by another process) error, whic

Re: Rename of .mdb file -- lock

2008-12-11 Thread Steve Holden
noydb wrote: > On Dec 11, 9:38 pm, "gudonghua+pyt...@gmail.com" > wrote: [...] > > Thanks! That was simple enough. > > And... > ##os.rename(new91mdb, (os.path.join(output_dir, uChoice))) > os.rename(new91mdb, (os.path.join(output_dir, "C:\TEMP\test1.mdb"))) > > ... of those two lines, the top

Re: Rename of .mdb file -- lock

2008-12-11 Thread noydb
On Dec 11, 9:38 pm, "gudonghua+pyt...@gmail.com" wrote: > On Dec 12, 10:15 am, noydb wrote: > > > > > All, > > > I have the code below, which unzips a zipfile containing only one > > file.  Once it is unzipped, I want to rename the file based on a user > > provided name.  But I get this (WindowsE

Re: Rename of .mdb file -- lock

2008-12-11 Thread gudonghua+pyt...@gmail.com
On Dec 12, 10:15 am, noydb wrote: > All, > > I have the code below, which unzips a zipfile containing only one > file.  Once it is unzipped, I want to rename the file based on a user > provided name.  But I get this (WindowsError: [Error 32] The process > cannot access the file because it is being

Rename of .mdb file -- lock

2008-12-11 Thread noydb
All, I have the code below, which unzips a zipfile containing only one file. Once it is unzipped, I want to rename the file based on a user provided name. But I get this (WindowsError: [Error 32] The process cannot access the file because it is being used by another process) error, which does no