bat file to replace string in text file

前端 未结 4 603
失恋的感觉
失恋的感觉 2021-01-22 04:23

This question has been asked a lot on stackoverflow, but I can\'t seem to be able to make it work. Any hints appreciated. Here is a text file (extension .mpl) containing offendi

4条回答
  •  猫巷女王i
    2021-01-22 04:50

    I'm no expert on batch files, so I can't offer a direct solution to your problem.

    However, to solve your problem, it might be simpler to use an alternative to batch files.

    For example, I'd recommend using http://www.csscript.net/ (if you know C#). This tool will allow you to run C# files like batch files, but giving you the power to write your script using C#, instead of horrible batch file syntax :)

    Another alternative would be python, if you know python.

    But I guess the point is, that this kind of task may be easier in another programming language.

提交回复
热议问题