An implementation of Visual Basic that is built into Microsoft products.
I use Microsoft Scripting Runtime when working with files
Option Explicit
Sub CopyFile()
Dim iPath As String
Dim oPath As String
Dim fso As New FileSystemObject 'Add reference to Microsoft Scripting Runtime'
If fso.FileExists(iPath) Then
If Not fso.FileExists(oPath) Then
fso.CopyFile iPath, oPath
Else
Call MsgBox("File Exists: " & oPath, vbOKOnly, "File Exists")
End If
Else
Call MsgBox("File Missing: " & iPath, vbOKOnly, "File Missing")
End If
End Sub