I think I'd check each piece:
Option Explicit
Sub testme()
Dim F As String
Dim DF As String
Dim DFFolder As String
Dim okToContinue As Boolean
okToContinue = True
F = "C:\BP View\Updates\DigDash CSVs\DDDesktop.csv"
If Dir(F) = "" Then
okToContinue = False
MsgBox F & " Not found"
End If
DFFolder = "C:\InetPub\wwwroot\dash\sla\"
If Right(DFFolder, 1) <> "\" Then
DFFolder = DFFolder & "\"
End If
DF = "data.txt"
If Dir(DFFolder & "nul") = "" Then
okToContinue = False
MsgBox DFFolder & " doesn't exist"
End If
If okToContinue Then
FileCopy F, DFFolder & DF
Else
MsgBox "not copied"
End If
End Sub
And I used VBA's FileCopy, too. As long as F and DF aren't open, it seems more
straightforward to me.