shelton1979
MIS
I don't know much about VB script but I need a script to rename a text file to another location. Can you help me please?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
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