[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 907
  • 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
Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

 
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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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