Thanks, I tried creating a test file but I get "Access is denied" from windows explorer! The folder appears to be read only but when I try and uncheck read only/apply/repopen the folder properties its still read only. This read only flag seems to propagate down from the My Music directory but unchecking it there also has no lasting effect.
I realise that theses are windows rather than python issues but I would expect there would be some reliable way of changing the file permissions from within python. I'm updating ID3 tags in MP3 file to give some context. If I use something like winamp to make the change to the ID3 tag then the file is updated with no permission errors so there must be a way.... I have added a stat call to the code which returns: (33206, 0L, 2, 1, 0, 0, 4142103L, 1118176036, 920221388, 1111442057) and this is the output of cacls (didn't know about this command): C:\Users\Barney\My Music\U2\The Best Of 1980 - 1990 (US CD 1)\02 - New Year's Day.mp3 XPHOME\Barney:(special access:) STANDARD_RIGHTS_ALL DELETE READ_CONTROL WRITE_DAC WRITE_OWNER SYNCHRONIZE STANDARD_RIGHTS_REQUIRED FILE_GENERIC_READ FILE_READ_DATA FILE_READ_EA FILE_WRITE_EA FILE_READ_ATTRIBUTES FILE_WRITE_ATTRIBUTES XPHOME\None:(special access:) READ_CONTROL SYNCHRONIZE FILE_GENERIC_READ FILE_READ_DATA FILE_READ_EA FILE_READ_ATTRIBUTES Everyone:(special access:) READ_CONTROL SYNCHRONIZE FILE_GENERIC_READ FILE_READ_DATA FILE_READ_EA FILE_READ_ATTRIBUTES I'm not entirely sure how to interpret these but will do some reading. In the meantime if someone could show me some python to force the file to be writeable that's all I really need at this stage. Thanks Barney -- http://mail.python.org/mailman/listinfo/python-list