1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

対象フォルダ(サブフォルダ含む)から特定の文字列を検索するバッチ

Posted at

#説明
一括で対象文字列をファイル群から検索するバッチ

#使用用途
ソースレビューの際不要なコメント、未解決の課題とうがないか探すのに使う

exec.bat
@echo off
@REM /s:サブフォルダ検索 /r:正規表現 /i:大文字、小文字区別なし
@REM utf-8表示
chcp 65001

set /p IN="フォルダパスを入力してください(サブフォルダは全て検索対象):"

for /f %%a in (readfile.txt) do (
    findstr /s/r/i ¥/¥/.*%%a %IN%¥* >> log.txt
)

pause
readfile.text
TODO
仮
確認
可能性
?
?
未設定
未完成
未定義
未確認
暫定
問い合
問合
不要
削除
課題
QA
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?