in Kscript, how to check contents of a custom software inventory field
On K1000 version 5.5, I have a custom software inventory field called FirefoxChannel that picks up a text line from a Firefox .INI file. In a Kscript, I want to see if that custom software inventory field contains a particular string. In other words, FirefoxChannel contains (or does not contain) "-esr".
I tried to use Windows' FindStr for this, but the Kscript does not appear to be checking its returned errorlevel correctly. (You'd think that, after all these years, this would have been fixed.)
Is there another way to check the contents of a custom software inventory field from a Kscript? Sande
I tried to use Windows' FindStr for this, but the Kscript does not appear to be checking its returned errorlevel correctly. (You'd think that, after all these years, this would have been fixed.)
Is there another way to check the contents of a custom software inventory field from a Kscript? Sande
1 Comment
[ + ] Show comment
-
I appreciate the comments, but for various reasons, I have to do it this way, not some other way. - snissen 10 years ago
Answers (2)
Please log in to answer
Posted by:
chucksteel
10 years ago
Posted by:
SMal.tmcc
10 years ago