Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

批量重新命名檔案/加前綴:Win 內建 F2 重命名 + .bat 腳本雙招搞定

編輯:Win10 系統基礎知識

方法一:內建批次重命名 (加流水號)

  1. 將所有照片放同一資料夾 → Ctrl+A 全選。
  2. 按 F2 (筆電 Fn+F2) → 輸入新名稱 (如「極客青年」) → Enter。
  3. 系統自動重命名為「極客青年 (1)」、「極客青年 (2)」... 避免重名。

方法二:.bat 腳本批量加前綴 (保留原檔名)

  1. 資料夾內新建文字檔,貼上:
    @echo off
    for /f "delims=" %%f in ('dir/b/s/a-d *.*') do (
    if not "%%~nxf"=="%0" ren "%%f" "極客青年%%~nxf")
  2. 另存為 → 檔案類型「所有檔案」 → 檔名 rename.bat (將「極客青年」換成想要的前綴)。
  3. 雙擊執行 .bat,所有檔案前綴瞬間加上。

XP/Win7/8/10 全支援。不想裝第三方重命名軟體,這兩招最輕量實用。

Copyright © Windows教程網 All Rights Reserved