comicguests (Freya)当前离线
三级士官
Set FSO = CreateObject("Scripting.FileSystemObject") For Each File in FSO.GetFolder(".").Files Ext = FSO.GetExtensionName(File) If LCase(Ext) = "mkv" Then RenFiles Next MsgBox "OK" Sub RenFiles() Set Re = New RegExp Re.Pattern = "(^.*\[)(\d{2})(\].*$)" Re.Global = True File.Name = Re.Replace(File.Name,"$2") & ".mkv" End Sub复制代码
评分人数
apang 当前离线
上将
If LCase(Ext) = "mkv" Or LCase(Ext) = "mp4" Or LCase(Ext) = "ass" Or LCase(Ext) = "rmvb" Then RenFiles复制代码
File.Name = Re.Replace(File.Name,"$2") & "." & Ext复制代码
TOP