I have seen in recent past days this type of question being asked so many times, I am posting similar post (one is from you as well) if you can get something from there -
I tried from both Console and QnA action tab
[image]
[image]
Hi,
// Disable wow64 redirection on x64 OSes
action uses wow64 redirection {not x64 of operating system}
parameter “folder” = “c:\temp”
if{exists file (parameter “folder”)(output.txt) whose (exists line whose (it > “0”) of it)}
Exit 100
endif
STATUS: Running action…
Wow64 redirection disabled. action uses wow64 redirection {not x64 of operating system}
Command succeeded parameter “folder” = "c:\temp"
Command failed (This expression contained a character which is not allowed.) if {exis…
Hi,
I have created below script. If output.txt have any number more than 0 then i should get exit code 100 and if it is only 0 then fixlet status should be fixed or completed with exit code 0.
But in below case even it is 0 still my fixlet is getting failed with exit code 0. Kindly help me in this issue.
if {exists file “output.txt” whose (line of it as string contains => “0”) of folder (parameter “Error_Folder”)}
exit 100
endif
I am trying to get the exit code for action script , but parameter command does not capture the output for if then else statement and provide me exit code 0 instead of exit code 100 in the below script
action parameter query "Identity" with description "Please enter the AD User account" with default value ""
action parameter query "Error_Folder" with description "Please enter the Folder Name and Path" with default value ""
folder create {parameter “Error_Folder”}
// Enter your action script h…
1 Like