OK, I hope someone is in this morning. This is easy but I can't figure out how to get it into a batch file for the people I am having to walk through manually.
I have a program that has a config file inside "/programdata/myprog/" so no one can even see it.
The file points the user to the correct IP address for the program to work. I wrote a short script that I then made a shortcut to and gave the shortcut admin rights which swapped out the corrected cfg for the old one.
This worked for ME and for some people but not for others. When I check their copy of "getthere.cfg" it is still the old one.
I need to edit the cfg file they have to change the only occurrence of IP "184.108.40.206" to IP "220.127.116.11".
How can I send them a script that will run "as admin" to open "c:\programdata\myprog\getthere.cfg" and change that ONE IP. It is the only occurrence of the IP in the cfg file..
If I try to send them the new config file they can't insert it without admin permissions and I would never tell any of them how to get that
And it has to be a one click fix. That is all they can handle.