• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 915
  • Last Modified:

Get files locked by a process and unlock a speciffic file

Hi everybody!

I have a to find the list of files locked by a process. The list will be logged for analyse purposes. If the list contains a speciffic file the lock must be released in order to move the file. The locking process must not be killed.

TNX
0
Borsec
Asked:
Borsec
  • 3
  • 3
2 Solutions
 
BorsecAuthor Commented:
Has anybody any idea?
0
 
systanCommented:
hi
if you want to move the file?, you can move it directly.
file.move(source, destination);

you don't have to unlock to move the file.
0
 
systanCommented:
System.IO.File.Move('running1.exe', 'running2.exe');
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
BorsecAuthor Commented:
The solution for me can be found under http://sourceforge.net/projects/delfilelock/
0
 
systanCommented:
Oh, you didn't ask about deleting a locked file, its seems that your doing not right.
anyway carry on.
0
 
BorsecAuthor Commented:
No other exper came with a reasonable solution and my solution did the trick.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now