Action script help

(imported topic written by khanand91)

hi

please can someone tell me why part of my action script is failing, the failing part is the last 3 lines of the code below.

Parameter “mastercontrolpath” = “c:\progra~2\tivoli\bigfix”

Parameter “lfa_stop” ="{(Parameter “mastercontrolpath”)}lfaStop.cmd"

createfile until end

some code

end

delete “{Parameter “lfa_Stop”}”

copy __createfile “{Parameter “lfa_Stop”}”

waithidden “{Parameter “lfa_Stop”}”

In the log file on the target host it says, relevance substition failed

any help appreciated.

(imported comment written by jessewk)

It looks fine to me, although why don’t you just use a single parameter for simplicity?

My guess would be that somewhere in ‘some code’ you will find the string ‘end’ which is causing the createfile to end prematurely.

Jesse

(imported comment written by khanand91)

hi jesse

the 1st parameter is determined in a if endif block based on the OS type.

strange as the code below definately didn’t work for some reason, i just worked round it in the end by building up the string in a different way.

a different topic i know but can you help me iterate through a reg key for key names, names of values and the values themselves - its a simple query but i get multiple results for each value with the following code:

(names of it, names of values of it, values of it ) of keys of key “HKLM_Regkey” of registry

thanks

(imported comment written by BenKus)

Hey khanand,

The way your query is written, it will return all combinations of every name/value pair… try this:

(names of it, (names of it, it) of values of it ) of keys of key “HKLM\regkey” of registry

Or if you don’t like that formatting, try this:

(names of it, (name of it & " - " & it as string) of values whose (exists name of it) of it ) of keys of key “HKLM\regkey” of registry

Ben