Adding Text/Value to the services file


  1. Posts : 1
    Windows 8 Pro 32bit
       #1

    Adding Text/Value to the services file


    Hi, just would to ask if you have a script wherein you can add a value, text, or line to services file found in C:\Windows\System32\drivers\etc? Need to add new value to services file for a lot of computers and all i can think of easy way to do this is via script. Hope someone could help me.
    Thank you and God bless!
      My Computer


  2. Posts : 2,468
    Windows 7 Ultimate x64
       #2

    Quite simple, just a one-liner bat file will do:

    Code:
    ECHO your line to add >> C:\Windows\System32\drivers\etc
    Remember that, since the whole Windows folder is read-only to users, you must run it as administrator, otherwise you'll get an access denied.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 00:38.
Find Us