Windowsでファイルの結合

Windowsのコマンドプロンプト上でPHPのファイルinc.phpとHTMLファイルを結合し、拡張子phpのファイルを作る方法。for文でファイル名を分解できることを知った。sedが欲しいな。

for %i in (*.html) do type inc.php %~ni.html > %~ni.php

コメントする

This site uses Akismet to reduce spam. Learn how your comment data is processed.