NewsArchive
06-05-2023, 02:07 PM
I am way back in SetupBuilder 10 to which we just moved from SB4 -
yeah, I know.
I am trying to check for in-use files. I must not be doing this is the
right place within the script because it isn't working for me.
Example, I have the following in my script:
Set Variable %APPFILES_LOCKED% to FUNCTION:Check In-use Folder Tree
("%_SB_INSTALLDIR%", 2) [IgnoreSelf]
Display Message Box ("%APPFILES_LOCKED%", "Folder In Use")
The function always assigns 0 to %APPFILES_LOCKED% evenb with multiple
files opened and in use.
I have also tried an individual single file like:
Set Variable %INUSE% to FUNCTION:Check In-use File
("%_SB_INSTALLDIR%\shared.txt")
Display Message Box ("%INUSE%", "Warning")
It doesn't matter what I do with this file shared.txt - It can be
opened, it can in fact be in edit mode with changes etc... But the
function never returns that the file is in-use and always returns 0
These are straight out of the manual - what am I missing?? Help!!
Andy Morgan
yeah, I know.
I am trying to check for in-use files. I must not be doing this is the
right place within the script because it isn't working for me.
Example, I have the following in my script:
Set Variable %APPFILES_LOCKED% to FUNCTION:Check In-use Folder Tree
("%_SB_INSTALLDIR%", 2) [IgnoreSelf]
Display Message Box ("%APPFILES_LOCKED%", "Folder In Use")
The function always assigns 0 to %APPFILES_LOCKED% evenb with multiple
files opened and in use.
I have also tried an individual single file like:
Set Variable %INUSE% to FUNCTION:Check In-use File
("%_SB_INSTALLDIR%\shared.txt")
Display Message Box ("%INUSE%", "Warning")
It doesn't matter what I do with this file shared.txt - It can be
opened, it can in fact be in edit mode with changes etc... But the
function never returns that the file is in-use and always returns 0
These are straight out of the manual - what am I missing?? Help!!
Andy Morgan