Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ファイルの特定の行にテキストを書きたいとします。たとえば、12 行目と 13 行目に書きたいのですが、5 秒ごとにこれを行う必要があります。
バッチスクリプトを使用してそれを行う方法は?
Win32 を使用している場合は、edlin のスクリプトを試すことができます。
Edlin.script
12 Write new text on line 12 13 Write newtext on line 13 e
コマンドライン
edlin "c:\something\somefile.txt < c:\edlin.script