Locking file on system from standalone app

7 visualizaciones (últimos 30 días)
Sean
Sean el 16 de Abr. de 2014
Comentada: Walter Roberson el 16 de Abr. de 2014
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.

Respuestas (1)

Walter Roberson
Walter Roberson el 16 de Abr. de 2014
One of the easier ways is to create a lock file that the other routine checks for, deleting the lock file to unlock.
  2 comentarios
Sean
Sean el 16 de Abr. de 2014
Is this a system function call, or do you simply create file.lock and check if that exists prior to reading?
Walter Roberson
Walter Roberson el 16 de Abr. de 2014
You can just create any file whose name is agreed upon between the two parts.

Iniciar sesión para comentar.

Categorías

Más información sobre MATLAB Compiler en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by