Modify File Content - Need Assistance

(imported topic written by gdelacruz91)

Hello,

I am trying to modify contents of an “ini” file. Based on postings I’ve read from this forum, here’s the commands I’ve created do far:

parameter “filename” = “{pathname of file (“C:\Program Files\Cisco Systems\VPN Client\vpnclient.ini”) whose (exists lines whose (it contains “RunAtLogon=1”)of it )}”

parameter “textToReplace” = “RunAtLogon=1”

parameter “newText” = “RunAtLogon=0”

Here’s the Action Script Results:

Completed parameter “filename” = “{pathname of file (“C:\Program Files\Cisco Systems\VPN Client\vpnclient.ini”) whose (exists lines whose (it contains “RunAtLogon=1”)of it )}”

Completed parameter “textToReplace” = “RunAtLogon=1”

Completed parameter “newText” = “RunAtLogon=0”

Unfortunately, the content modification is still not working. Essentially, I’m trying to modify from “RunAtLogon=1” to “RunAtLogon=0”. What can be wrong?

(imported comment written by BenKus)

You might want to check out here for a potentially easier way to do this:

http://forum.bigfix.com/viewtopic.php?pid=3404#p3404

Ben

(imported comment written by gdelacruz91)

Thank you for the feedback.

I’ll give this method a try.