Announcement

Collapse
No announcement yet.

batch file to delete text from file

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • batch file to delete text from file

    I"ve seen a few other posts about this but I don't understand them so I can't change them to meet my needs.


    It would be nice if my batch file would...

    Delete:
    |DISABLE_FOR_VISTA
    and
    DISABLE_FOR_VISTA|

    In:
    %ProgramData%\xfire\xfire_games.ini


    also an explanation of how it works would be nice to

  • #2
    Re: batch file to delete text from file

    type xfire_games.ini | findstr /v DISABLE_FOR_VISTA

    Ya might have to output to another file with a >> if you wanna redo the file but that is the basics
    type xfire_games.ini | findstr /v DISABLE_FOR_VISTA>>SOME_FILE.txt
    and do a delete /rename

    Comment

    Working...
    X