G
Garry
Can someone explain why the first code works but the
second code doesn't? The second code generates a "file not
found" error.
Code that works:
Set fs = CreateObject("Scripting.FileSystemObject")
WorkingDir = "c:\nmv\run\"
fs.CopyFile "c:\nmv\run\data\datafile.csv", WorkingFile
Code that doesn't work:
Set fs = CreateObject("Scripting.FileSystemObject")
WorkingDir = "c:\nmv\run\"
DataToCopy = "c:\nmv\run\data\datafile.csv"
fs.CopyFile DataToCopy, WorkingFile
TIA,
Garry
second code doesn't? The second code generates a "file not
found" error.
Code that works:
Set fs = CreateObject("Scripting.FileSystemObject")
WorkingDir = "c:\nmv\run\"
fs.CopyFile "c:\nmv\run\data\datafile.csv", WorkingFile
Code that doesn't work:
Set fs = CreateObject("Scripting.FileSystemObject")
WorkingDir = "c:\nmv\run\"
DataToCopy = "c:\nmv\run\data\datafile.csv"
fs.CopyFile DataToCopy, WorkingFile
TIA,
Garry