/build/static/layout/Breadcrumb_cap_w.png

Need vbscript to get the IPAddress of current system and write that value into the ini file.

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   [ + ] Show comments

Answers (1)

Posted by: dodgy 15 years ago
Orange Belt
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).
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
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