Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Dim oFileSys,oFolder,aFiles
- Set oFileSys = CreateObject("Scripting.FileSystemObject")
- Set oFolder = oFileSys.Getfolder(oFileSys.GetAbsolutePathName("."))
- Set aFiles = oFolder.Files
- For Each file in aFiles
- If Instr(file.name,"xyz") > 0 Then
- newName = Replace(file.name,"xyz_","")
- File.move(newName)
- End If
- Next
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement