|
View previous topic :: View next topic |
Author |
Message |
simonl
Joined: 03 Apr 2002 Posts: 49
|
Posted: Fri Sep 21, 2007 8:18 am Post subject: macro variables |
|
|
I'm trying to use macro variables to compress old common log files with HostMonitor special processing option but it's not working.
Here is the line of command which I'm using:
cmd /c c:\Program Files\WinZip\WZZIP.EXE "D:\Program Files\HostMonitor6\Logs\%mmddyyyy[-1d]%-log.zip" "D:\Program Files\HostMonitor6\Logs\%mmddyyyy[-1d]%-log.txt"
I can see entry in syslog.htm as:
Log processing: cmd /c c:\Program Files\WinZip\WZZIP.EXE "D:\Program Files\HostMonitor6\Logs\%mmddyyyy[-1d]%-log.zip" "D:\Program Files\HostMonitor6\Logs\%mmddyyyy[-1d]%-log.txt" ...
Could you please let me know if this is correct?
Thank you.
Simon. |
|
Back to top |
|
|
KS-Soft Europe
Joined: 16 May 2006 Posts: 2832
|
Posted: Fri Sep 21, 2007 9:23 am Post subject: |
|
|
Sorry, HostMonitor does not allow you to use "Date & Time" macro variables on "Log Processing" tab of the "Options" dialog.
You may use special variables in the command line:
%log% - represents full name (including path) of the log file (e.g. C:\Program Files\HostMonitor\Logs\04-2004.htm)
%logpath% - represents path to the log file (including trailing back slash. E.g. C:\Program Files\HostMonitor\Logs\)
%logname% - represents name of the log file (e.g. 04-2002.htm)
%logext% - represents extension of the log file (e.g. ".htm")
http://www.ks-soft.net/hostmon.eng/mframe.htm#options.htm#logprocessing
Regards,
Max |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|