回答編集履歴

1

修正漏れ

2025/02/05 11:53

投稿

otn
otn

スコア86162

test CHANGED
@@ -9,7 +9,7 @@
9
9
  (正規表現の何が使えるかは、`findstr /?`のヘルプに出てます)
10
10
  ```CMD
11
11
  for /d /r "D:\TESTFOLDER" %%A in (*) do (
12
- echo %%~nxA | findstr /r "^[0-9][0-9]* *$" >NUL
12
+ echo %%~nxA | findstr /r /C:"^[0-9][0-9]* *$" >NUL
13
13
  if not errorlevel 1 echo "%%~A" is OK
14
14
  )
15
15
  ```