本帖最后由 terse 于 2019-10-7 10:23 编辑
- @set @i=0 /* & @echo off
- for /f "delims=" %%i in ('dir /b /a-d ^|cscript -nologo -E:JScript %0') do ren %%i
- pause & exit
- */
- var re = /\u300a|\u300b|_\d{8}/g;
- while (!WSH.StdIn.AtEndOfStream) {
- var file = WSH.StdIn.ReadLine();
- WSH.Echo( '"' + file + '"','"' + file.replace(re,'') + '"')
- }
复制代码
|