TheNine
V2EX  ›  问与答

请问是否有可以批量删除文件名中文的软件吗

  •  
  •   TheNine · Jul 6, 2023 · 1086 views
    This topic created in 1050 days ago, the information mentioned may be changed or developed.
    公司有 2000 多个员工,现在照片命名格式是名字➕工号,现在只想保留工号去掉名字,请问有软件或者命令快捷实现吗
    brader
        1
    brader  
       Jul 6, 2023
    写个代码脚本呗,很简单的
    hgc81538
        2
    hgc81538  
       Jul 6, 2023 via iPhone
    試試 https://www.bulkrenameutility.co.uk/ 行不行?不過是英文的
    coderluan
        3
    coderluan  
       Jul 6, 2023
    @echo off
    setlocal enabledelayedexpansion

    set "target_dir=C:\path\to\directory"

    pushd "%target_dir%"

    for /r %%F in (*) do (
    set "file=%%~nxF"
    set "new_file=!file!"

    for /f "delims=0123456789" %%A in ("!new_file!") do (
    set "new_file=!new_file:%%A=!"
    )

    ren "%%F" "!new_file!"
    )

    popd

    chatgpt 写的,未验证,存到 txt 后缀改成 bat 就行。
    coderluan
        4
    coderluan  
       Jul 6, 2023
    https://renamer.en.softonic.com/ 这个软件也好用
    jifengg
        5
    jifengg  
       Jul 6, 2023
    powertoys 的工具 powerrename
    使用正则表达式,搜索字符填:[^\d]
    替换字符保留空
    应用于:filename only
    意思就是把文件名里非 0~9 的字符去掉
    watermeter
        6
    watermeter  
       Jul 6, 2023 via Android
    renamer
    daliusu
        7
    daliusu  
       Jul 6, 2023
    你把你这个问题原样复制给 chatgpt 他都能给你写个脚本... 上这个论坛的还不会用 ai 我是想不到的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4208 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 01:00 · PVG 09:00 · LAX 18:00 · JFK 21:00
    ♥ Do have faith in what you're doing.