File check for deployment

(imported topic written by johnism91)

Ok I am have one fixlet that will deploy a txt file on C:\ and then another fixlet to look for this file before deployment .

So I am assuming I do this under the Relevance tab of the fixlet …

and what woudl I do “Computers which match all of the relevance clauses below” and have somthign like

if C:\File.txt = true

thanks for any help

(imported comment written by jeremylam)

If you are just checking for the existence of the file:

exists file “C:\File.txt”

(imported comment written by johnism91)

so that make sense, does that go under the relevance tab section - > computers which match all of the relevance clauses below .

And it would read

exists file “C:\file.txt” true

(imported comment written by jeremylam)

You would need to remove the “true” at the end, but yes that’s the right location.

(imported comment written by johnism91)

perfect …thank you . I am assuming if I wanted to avod machines that had that it would read .

not exists file “C:\file.txt”

oh yea and how come when I do something like this the action returns a value of fail when it was actually successful?