Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hello,
I want to read a file with following DCL-Code:
OPEN/READ FILE <whatever>
How can i check if the file is open(lock) by an another user? Before I call the open/read code, I want to check if the file is open.
Thanks im behaviour.

Hello,
What are you trying to accomplish?
Is your goal is to avoid printing an error message from the OPEN command, one way is to use the /ERR qualifier to handle the error:
$OPEN/READ FILE <whatever> /ERR=SKIP_INPUT
$READ FILE etc
$CLOSE FILE
$SKIP_INPUT:
$EXITKelly

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |