if
(
exists value of settings "ITSIT_Scanner_OutDir" of client
)
then
(
exists file
(
computer id as string & ".xml"
)
of folder
(
value of settings "ITSIT_Scanner_OutDir" of client
)
)
else
(
if
(
name of operating system as lowercase starts with "win"
)
then
(
exists file
(
computer id as string & ".xml"
)
of folder
(
pathname of parent folder of regapp "besclient.exe" & "\LMT\ITSIT"
)
)
else
(
exists file
(
computer id as string & ".xml"
)
of folder
(
(
pathname of parent folder of parent folder of client folder of site "actionsite"
)
& "/LMT/ITSIT"
)
)
)
if (exists value of settings "ITSIT_Scanner_OutDir" of client) then (exists file (computer id as string & ".xml") of folder (value of settings "ITSIT_Scanner_OutDir" of client)) else (if (name of operating system as lowercase starts with "win") then (exists file (computer id as string & ".xml") of folder (pathname of parent folder of regapp "besclient.exe" & "\LMT\ITSIT")) else (exists file (computer id as string & ".xml") of folder ((pathname of parent folder of parent folder of client folder of site "actionsite") & "/LMT/ITSIT")))