scripting to change ip address in xml file
Hi
i am packaging an application which hard codes an xml file with my host ip address, i need this to be taken from each machine it is on and not keep my host ip for every machine that installs the software as the program requires the host machines ip.
can anyone advise of a script which will dynamicaly change the ip address in this xml file as i cant find anything anywhere!
thanks
Answers (3)
A quick Google search found loads of hits for editing XML with vbscript.
This one gives a good example, you'll just need a bit of code to grab the client IP address from your target machine so that it can be written to the XML file.
http://community.spiceworks.com/scripts/show/578-edit-xml-file-with-vbscript
Hope that helps,
Dunnpy
Comments:
-
i couldnt find anything that would do the job when i searched, found two but they didnt work, thanks for this, im not been lazy and just posting for an easy life i have looked for something first. - keane2012 12 years ago