Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: unlinking an index.dat file in windows

by Burak (Chaplain)
on Jul 01, 2010 at 19:54 UTC ( [id://847603]=note: print w/replies, xml ) Need Help??


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 ;-'

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://847603]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-18 09:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found