corne.voogt

Copy a file

Discussion created by corne.voogt on Apr 15, 2013
Latest reply on Apr 15, 2013 by corne.voogt

Hoi,

 

I'm working in DxDesigner (*.efm, VBScript) and I want to copy a file. I tried 2 ways, but both do not work

Way 1:

Dim fso

 

Set fso = CreateObject("Scripting.FileSystemObject")

fso.FileCopy "c:\Systeem\My Documents\componentDb.xlsx","C:\temp\componentDb.xlsx"

 

    Error: Object doesn't support this property or method: 'fso.FileCopy'

 

Way 2:

FileCopy "c:\Systeem\My Documents\componentDb.xlsx","C:\temp\componentDb.xlsx"

 

     Error: Type mismatch: 'FileCopy'

Outcomes