Setting a variable from a batch file

Hi

Is it possible to set a variable within a batch file which continua calls, and then for continua to pick it up and work with it?

I have tried

exit myvalue 

within my batch file, but can't work out how to pick this up in continua.

Also tried to use SetX to write a system environment variable, but I would need to elevate permissions of the continua agent to use this as I get a error unable to write to registry

Just after the best way of achieving this

Thanks


Rob

Hi Rob

Yes, although it’s not documented yet :
[code] @echo offecho @@log{setvariable name=“myvariable” value=“hello world”}@echo on[/code]
Note in this case the @echo off is so that it doesn’t set the variable twice.

Hi Rob

Forgot to mention that the variable must be defined on the configuration.

Thanks, this did the job :-)


Rob