General information
Category:
Coding, syntax & commands
The solution depends on what you actually need. There could be different scenarios:
1. just make sure you can get exclusive access
2. force to close/kill application if it is running
3. prevent the usage of application while in process of copying,
etc...
If the #1 above is oK, then this might be enough:
lnfp=fopen("appfile.exe",2)
if lnfp<=0
* file is open somewhere
RETURN
else
=fclose(LNFP)
ENDIF
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only