/build/static/layout/Breadcrumb_cap_w.png

Need .VBS to copy info from .INI then write to a .XML file

Hey All,
I’m trying to automate the IBM/Louts Sametime 7.5.1 install so once the app/MSI is installed the user only needs to enter in the password.
I need to copy the full name of the lotus notes user from the Notes.ini and insert it into two separate .xml files. Then I need to just insert or copy over the name of the Sametime server into the same .xml files. Some of the entries in the .xml files are host="Sametime1.acme.com" and name="Sametime1.acme.com:speed racer" Does anyone have a .VBS that will do this?

thanks,
Gage

0 Comments   [ + ] Show comments

Answers (3)

Posted by: anonymous_9363 16 years ago
Red Belt
0
This post belongs in the 'Scripting' forum. One of the moderators will probably move it.

I have an XML WMC which I've used FOR ONE PURPOSE. I emphasise that because I've not used it in about 3 years and therefore can't vouch for the efficacy of the other functions, nor did I spend a great deal of time working out how to use them.. It should be a trivial task to turn the WSC into a class which you can incorporate into the script.

I've deposited a copy http://senduit.com/b805af here. The link expires in 2 days.

Alternatively, if your environment allows 3rd-party ActiveX controls, you could do worse than this http://www.chilkatsoft.com/xml-activex.asp

Edit:
I meant to add that you can get an INI class for your script (and some other nice classes) here http://www.jsware.net/jsware/scripts.php3
Posted by: rajker 16 years ago
Yellow Belt
0
Hi, I want to connect a wmi namespace(in localhost) by using the wise script editor...what are the action to connect the wmi name space.

i need to conect to this local wmi namespace

connect to the local wmi namespace: \\{localcomputer}\root\cimv2
Posted by: anonymous_9363 16 years ago
Red Belt
0
In all WMI calls, a full-stop (or 'period' to our colonial bretheren) is the shorthand for the local machine. Thus (in VBS syntax):

strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ