How can I extract a specific line from Hosts and Services File?

rrojo7229

Member
Hi fellows,

Someone can say me how can I extract a specific line from Hosts and Services File from the Client?

I must extract a specific line from Hosts file which contains a specific server name and its IP address and from Services file a specific service, if those does not exist I must create the line in the file.

How can I do that thing?

Progress 9.1E

Thanks in advance...
 
hello
go to
C:\WINDOWS\system32\drivers\etc

Edit

hosts file

and add the sever IP (if the server is not the localhost)

Eg:- 10.202.0.13 Sever Computer name (I think it is case sensitive)

Then
Edit services File and add the line for each DB started in the server

sports2000 4800/tcp #Sports2000
4800 is Service Name Or port numer DB is started with -S

Regards
Philip P Oommen
 
Back
Top