TechTalkz.com Logo

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech World > TIPS 'n' TRICKS

Notices

Services Files

TIPS 'n' TRICKS


Reply
 
Thread Tools Display Modes
Old 05-10-2009, 08:15 AM   #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 TG09 is an unknown quantity at this point


OS: Windows XP Windows Server 2003 / Windows Server 2008 Windows Vista Windows 7


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.
TG09 is offline   Reply With Quote
Old 09-10-2009, 05:26 PM   #2
Founder
 
Strider's Avatar
 
Join Date: Nov 2005
Location: The Last City Zion!
Posts: 3,539
Thanks: 287
Thanked 345 Times in 298 Posts
Rep Power: 62 Strider is just GreatStrider is just GreatStrider is just GreatStrider is just GreatStrider is just GreatStrider is just GreatStrider is just GreatStrider is just GreatStrider is just GreatStrider is just GreatStrider is just Great


OS: Windows XP Windows Server 2003 / Windows Server 2008 Windows Vista Windows 7 Linux


Re: Services Files

If you're using a batch script the commands Type and FindStr are the way to go.
Strider is offline   Reply With Quote
Reply

Thread Tools
Display Modes



< Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT +5.5. The time now is 07:09 PM.


vBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2009, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional