Modify Value of Line In File
0 Votes |
Description
Property Details
26946 | |
Alpha - Code that was just developed | |
Modify Value of Line In File | |
BESC | |
Mike Consuegra | |
9/7/2019 12:00:00 AM | |
True | |
mxc0bbn on 8/10/2022 2:37:15 PM | |
mxc0bbn on 8/10/2022 2:37:15 PM | |
2082 Views / 2 Downloads | |
![]() ![]() ![]() ![]() ![]() |
Relevance
Used in 1 fixlet | * Results in a true/false |

following text of first "=" of (lines of file "c:\temp\ClientAgent.cfg" as string) whose (it contains "SITE_CONTROLLER_ADDRESS") = ""
Actions
Action 1 (default)
Action Link
Delete hosts file entry.
Script Type
BigFix Action Script
action parameter query "ipaddress" with description "Enter the value to add to the 'SITE_CONTROLLER_ADDRESS' field:"
delete __createfile
createfile until EOF
{concatenation "%0D%0A" of ((it) as string) whose (it does not contain "SITE_CONTROLLER_ADDRESS=") of (lines of file "c:\temp\ClientAgent.cfg")}
SITE_CONTROLLER_ADDRESS={parameter "ipaddress"}
EOF
dos del /F "c:\temp\ClientAgent.cfg"
move __createfile "C:\temp\ClientAgent.cfg"
Success Criteria
This action will be considered successful when the applicability relevance evaluates to false.
Sharing
Social Media: |