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
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)
Please log in to answer
Posted by:
dodgy
15 years ago
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).
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.
so that the conversation will remain readable.