' Collection of code snippets by Arne Vajhøj 
' (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
Set fso = CreateObject("Scripting.FileSystemObject")
Set dir = fso.GetFolder("C:\")
For Each f In dir.Files
    If Right(f.Name, 4) = ".xml" Then
        f2 = Replace(f.Path, ".xml", ".read")
        If fso.FileExists(f2) Then
            Call fso.DeleteFile(f2)
            Call f.Move(f2)
        End If
    End If
Next
Set dir = Nothing
Set fso = Nothing
