Translate macro
Translate macro
Hi Alex,
I need to run an extrenal program with special names, but there is no "translate macro" check box for the command line...
Can you put it there ?
Thank You.
I need to run an extrenal program with special names, but there is no "translate macro" check box for the command line...
Can you put it there ?
Thank You.
I put the folowing line in the Execute external program action,
When I replace %yyyy%-%mm%-%dd% by the current date, it works, so I think that translate macro doesn't works...
Code: Select all
cscript //B "C:\Program Files\HostMonitor\scripts\ctrlchaineintuition.vbs" exception \\Jade\Exploitation\intuition\rwserver\iI%yyyy%-%mm%-%dd%T*.log
HostMonitor 4.10 resolves macros. I do not have script that you use but I created "execute external program" action and copied your command line, added "cmd /c echo" ahead and added ">>c:\test." in the end.
After action execution I checked the log. There is line from the log:
As you see HostMonitor works correctly. Probaly something wrong in the script?
Regards
Alex[/code]
After action execution I checked the log. There is line from the log:
Code: Select all
cscript //B "C:\Program Files\HostMonitor\scripts\ctrlchaineintuition.vbs" exception \\Jade\Exploitation\intuition\rwserver\iI2003-10-06T*.log
Regards
Alex[/code]
I tried this in external program :
and the result in c:\TEMP is :
doesn't work for me.
Code: Select all
cmd /c echo iI%yyyy%-%mm%-%dd% >> c:\TEMP\test.txt
Code: Select all
%yyyy%-%mm%-%dd%
To Marcus:
Version 3.69 resolves test related macro variables (when execute action) but does not resolve date&time variables. This feature was implemented in versions 4.0
To y.beyet:
I checked code and do not see any reason why this function may work incorrectly. Are you absolutely sure you are using version 4.10?
Regards
Alex
Version 3.69 resolves test related macro variables (when execute action) but does not resolve date&time variables. This feature was implemented in versions 4.0
To y.beyet:
I checked code and do not see any reason why this function may work incorrectly. Are you absolutely sure you are using version 4.10?
Regards
Alex