How to edit specific line of code in a bat file java

时间:2015-10-29 15:51:02

标签: java file

I wonder for a project of mine: how do i edit a specific line of code in a bat file, using java? Say the file is in the src folder, and contains the text:

cd C:\Users\User\
start example.exe

So, how can i edit the "User" in the cd, in line 1? It doesn't matter what the program needs to do for it, as long as it happens. Put i'd like a way without needing to create a new file, but that wouldn't be a disaster.

0 个答案:

没有答案