@echo off
setlocal enabledelayedexpansion
rem 対象のディレクトリを指定
set "target_dir=C:\path\to\your\folder"
rem カレントディレクトリを変更
cd /d "%target_dir%"
rem ファイルの拡張子を大文字に変更
for %%f in (*.csv) do (
set "filename=%%~nf"
ren "%%f" "!filename!.CSV"
)
endlocal
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme