Locking file on system from standalone app

Is it possible to lock a file in a compiled, standalone Matlab exe so that some separate program will know the file is locked? I will control both apps, so it's ok if the lock is not strictly enforceable.

답변 (1개)

Walter Roberson
Walter Roberson 2014년 4월 16일

0 개 추천

One of the easier ways is to create a lock file that the other routine checks for, deleting the lock file to unlock.

댓글 수: 2

Sean
Sean 2014년 4월 16일
Is this a system function call, or do you simply create file.lock and check if that exists prior to reading?
You can just create any file whose name is agreed upon between the two parts.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

질문:

2014년 4월 16일

댓글:

2014년 4월 16일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by