![]() |
|
|
#1 |
|
Junior Member (25+)
Join Date: Nov 2007
Location: New Zealand
Age: 30
Posts: 26
Thanks: 1
Thanked 1 Time in 1 Post
Rep Power: 0
![]() OS:
|
Services Files
Hi All,
I need to amend to the services file under C:\windows\system32\drivers\etc\services If the line is not there, then add it. Then I need another script to remove it if it is there. Its for an install and rollback script I am working on. I think I have got it to add it, but I would like a check to see if it is there if so replace what is there. |
|
|
|
|
|
#2 |
|
Founder
![]() Join Date: Nov 2005
Location: The Last City Zion!
Posts: 3,539
Thanks: 287
Thanked 345 Times in 298 Posts
Rep Power: 62
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() OS:
|
Re: Services Files
If you're using a batch script the commands Type and FindStr are the way to go.
![]() |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
< Windows Help - MS Office Help - Hardware Support >
| New To Site? | Need Help? |