Yes, that worked to increase the buffer. Thank you, Tim. :)
Andrew
On Thu, May 24, 2018 at 12:10 PM, Tim Roberts wrote:
> Andrew Ziem wrote:
>> When I select a few files, the dialog works, but when I select many
>> files, I get the following error. Do you have any advice?
>
When I select a few files, the dialog works, but when I select many
files, I get the following error. Do you have any advice?
error: (12291, 'GetOpenFileNameW', 'No error message is available')
Error 12291 is FNERR_BUFFERTOOSMALL
The full code is below
import win32con
import win32gui
ret = wi
Using Python 2.5.4 on Vista and Windows 7, I get a catastrophic
failure with the same code that works on XP SP3
from win32com.shell import shell
shell.SHEmptyRecycleBin(None, None, 0)
com_error: (-2147418113, 'Catastrophic failure', None, None)
In hex, this error is 8000.
I tried drive="c:\\
I'm looking for a painless way to find the process ID that locks a
file in Python for my open source project with these specs:
* Runs as non-administrator
* Covers processes/files owned by the current user (I don't care about
service accounts, etc.)
* Installs as administrator or not (I don't care