Usually if you can open a file for reading it means it is not locked. Here is an example script Dim file_number OnErrorGoTo LOCKED FileOpen( "myfile.txt", "LineMode", "Read", "", file_number ) OnErrorResumeNext FileClose( file_number ) // ok file is not locked // ... put "if NOT locked" processing here .... Exit LOCKED: OnErrorResumeNext FileClose( file_number ) OnErrorStop // ... put "if locked" processing here .... : I have a list of files that are pushed to one of my servers daily. I need to : write : a check in JAL that verifies whether the file is 'complete' or not. : Is there any way of looking for file locks on a particular file, or is a : iterative : file size compare the way to go? : -MPT
|