Option Explicit
Dim oFSO
Set oFSO = CreateObject("Scripting.FileSystemObject")
If oFSO.FileExists("6059.scr") = True Then
oFSO.CopyFile("6059.scr", "6059.txt")
Else
'The first file was not there
WScript.Quit()
End If
If oFSO.FileExists("6059.txt") = True Then
oFSO.DeleteFile("6059.scr")
Else
'There was a problem with the copy because the
'new file is not present
End If
Set oFSO = Nothing