0
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?

拡張子変換バッチ

Posted at

@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
0
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
0
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?