/bundles/itninjaweb/img/Breadcrumb_cap_w.png
Hi ,

I need a vb script to get the ip address of current system and add this value into the ini file.

Product.Ini file is having following information.

[General]
ProductName=UnifiedReport
ProductVersion=6.0.0.0
[USER_INPUT]
DBTypeValue=0
bvCheckHP=0
IPAddressValue=
RegistrationMaintenanceNumber=8888-8888888888
ServiceName=UnifiedReport
PortNumber=8888

Here in the above ini file we need to get IPAddressValue of ystem and enter that IPAddress in the IPAddressValue line.


Thanks
Sanjeev.V
0 Comments   [ - ] Hide Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity

Answers

0
I suggest you have a look at the Microsoft WMI Creator application (http://tinyurl.com/2fx5fy).
Have a look at the Win32_NetworkAdapterConfiguration class, you'll find everything you need there.

The WMI Creator even writes the code (c#, vbscript or vb.net) for you, just a few modifications and you use it however if you like.

As for modifying the INI file see http://www.robvanderwoude.com/vbstech_files_ini.php (google vbscript +ini).
Answered 04/22/2009 by: dodgy
Orange Belt

Please log in to comment