I am trying to return the folder name of the last modified folder in a directory. The folder I am trying to get the name of is the latest folder for the Network Threat Proctection definitions for Symantec Endpoint Protection.
(names of folders of folder “C:\Program Files\Common Files\Symantec Shared\SymcData\cndcipsdefs”) whose (modification time of it equals (maximum of (modification times of folders of folder “C:\Program Files\Common Files\Symantec Shared\SymcData\cndcipsdefs”)))
I am missing something here. Can anyone help me out here?
Very close… The way you have it written, the “it” refers to the “name of folder” and you instead want the “it” to refer to the “folder”…
See if this works for you:
(names of folders whose (modification time of it equals (maximum of (modification times of folders of folder “C:\Program Files\Common Files\Symantec Shared\SymcData\cndcipsdefs”))) of folder “C:\Program Files\Common Files\Symantec Shared\SymcData\cndcipsdefs”)
I realized that there is a place in the registry to grab the same information. The “Symantec AntiVirus - Client Information - Windows NT/2000/XP/2003/Vista” analysis only returns the anitvirus and spyware definitions. I was hoping that I would be able to modify that analysis to include the proactive threat definitions and the network threat protection definitions. It does not appear that I can modify this analysis. Is there anywhere to submit an enhancement to the analysis?
This is the relevance for the network threat protection defs
if (exists key “HKEY_LOCAL_MACHINE\SOFTWARE\Symantec\SharedDefs\SymcData-cndcipsdefs” whose (exists value “cndcIps” of it) of registry) then ((if (exists “” of it AND following text of last “” of it contains “.”) then (preceding text of last “.” of following text of last “” of it & ", rev. " & following text of last “.” of following text of last “” of it) else (it)) of (value “cndcIps” of key “HKEY_LOCAL_MACHINE\SOFTWARE\Symantec\SharedDefs\SymcData-cndcipsdefs” of registry as string)) else “”
So far I can not find a place to pull the Proactive Threat defs from.