File In Use - Forum

Forum Navigation
You need to log in to create posts and topics.

File In Use

Anyone know of a plugin that has a function to tell if a file is open or in use by another program or user?

Hi!

Plug-in:
NeoGetFileDateTime (David de Argentina)

Command:
ae_GetFileDateTime

Define the date when the selected file was created, modified and last opened. If data cannot be obtained (file is currently open), the information will be 1/1/1601 04:00:00.

Thanks. That would work. Do you have this plugin or know where I can get it?

Demo and plug-in in the archive.
Have a nice evening!

Uploaded files:
  • You need to login to have access to uploads.

@vadim

Thanks.

It seems that it works very well for detecting if programs are running, even a NeoBook program running from a network drive. However it won't tell me if someone has a file open such as an Excel (XLS) or Access DB (MDB) file, whether it's in use by another user.

Still, I think this will be a rather handy plugin.

@pauljonestindall

If you know the file name in advance, you can use this monitoring code (of course, the program should work at this time):

.get the top window descriptor
zmGetForegroundWindow "[HWND]".
. get the window title from the descriptor
zmGetWindowTitle "[HWND]" "" "[TitleH]".
.remove quotes from the resulting window title (if any)
StrReplace "[TitleH]" "[#34]" "" "[TitleH]".
. further check - the received header text is allowed by us or not.
...

I controlled the student test windows so much - you could only open certain files in Excel and only a certain website in Browser, which was always on top.

Used plugin zmFunctions (Peter Pavlov)