Mar 22, 2008 #1 DseeDm Programmer Joined Sep 2, 2002 Messages 31 Location US Hello, Hopefully this is an easy one. I have a process that moves a file. Just need to check to see if the file is open before I move it. Any sugestions? Thanks - D
Hello, Hopefully this is an easy one. I have a process that moves a file. Just need to check to see if the file is open before I move it. Any sugestions? Thanks - D
Mar 22, 2008 #2 strongm MIS Joined May 24, 2001 Messages 20,264 Location GB Try and get an exclusive lock on it. If it fails, the file is in use ... Upvote 0 Downvote