2 Replies Latest reply on Apr 15, 2013 11:08 PM by corne.voogt

    Copy a file

    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'