Problem with {computer id}

(imported topic written by RemQuadriga91)

Hello, colleagues!

Trying to run a fixlet with script on clients. The script name contains computer id. Why the following action fails at the first line? The file definitely exists.

continue if exists file "{computer id}.pas" of folder "C:\Program Files\BigFix Enterprise\BES Client\__BESData\actionsite"
wait avz.exe Script="{computer id}.pas" HiddenMode=3

(imported comment written by SystemAdmin)

In actionscript, we use the { } to denote relevance substitution, and whatever the results of the relevance expression will be pasted into the action. you want your whole expression after the if to be within the curly:

continue if {exists file ((computer id  as string) &".pas") of parent folder of client}
wait avz.exe Script="{computer id}.pas" HiddenMode=3