http://qs1969.pair.com?node_id=847603


in reply to Re^2: unlinking an index.dat file in windows
in thread unlinking an index.dat file in windows

That "ATTRIB" thing you mention is probably the read-only flag. It's not a lock and you can overwrite a read-only file. In your case the file is opened by another program (lets say you opened a JPEG in Photoshop and can't delete the file from disk while it's opened in Photoshop) and the program itself locked the file not that attribute thing. You can't delete the file until the other program exits or closes the file. Use Process Explorer to see which program opened a handle to it (on Vista/7 you need to run as administrator). You can also get the process list with some Win32 modules I believe.
  • Comment on Re^3: unlinking an index.dat file in windows

Replies are listed 'Best First'.
Re^4: unlinking an index.dat file in windows
by Don Coyote (Hermit) on Jul 02, 2010 at 00:07 UTC
    ah. so this is a bit like using a shared spreadsheet. when another user is handling the file. i will look into the process handler link (thanks) and also the flock method - iasaw aliitle bit of this. and i should be able to work it ut from there. obv win32 isn't ideal but if i can get round that then server should be fairly straight forward when i get there. :D

    thanks for the info burak ;-'