如果你使用 Windows 7 及以上,可以考虑使用 powershell,而不是 bat(批处理)。 将下面的代码保存为后缀为 `.ps1` 的文件即可。 Get-ChildItem | Where-Object { $_.Extension -ne '.bat' } | ForEach-Object { $_.BaseName -replace '^\d{4}_\d{2}_\d{2}_', '' } | Out-File -FilePath "all.txt" -Encoding UTF8
阅读量:1
点赞量:0