string manipulation in (user)variable

Need new test, action, option? Post request here.
Post Reply
Seitter
Posts: 27
Joined: Wed Jan 08, 2003 6:00 pm

string manipulation in (user)variable

Post by Seitter »

Hi,

in a action i execute a external programm with parameters
to generate a ServiceCall in our HelpDeskSystem

one parameter is %Reply_Cstyle% (the NT-Log-Message)

%Reply_Cstyle% contains " (Quotes), that's a problem

now the question, is there a way to replace " by Space in a variable
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

There are undocumented parameters SubstituteFieldFrom and SubstituteFieldTo that can be used in [Misc] section of hostmon.ini file.
If you add lines like
SubstituteFieldFrom = "
SubstituteFieldTo = `

into [Misc] section and restart HostMonitor, it will replace " with `

Regards
Alex
Post Reply