Reputation: 19356
I want to create a VBS script for a Windows CE device to copy some files from a SD card to a network folder. But I get this error: Error ActiveX component can't create object: 'CreateObject'
This is the code:
' Declaration of variable
Dim objFileSystem
' Create object for filesystem access
Set objFileSystem = CreateObject("Scripting.FileSystemObject")
' Copy folder
objFileSystem.CopyFolder "\storage card2\*", "\\PlcServer\csv"
' Deallocate filesystem object
Set objFileSystem = Nothing
The problem is when I try to create the FileSystemObject object.
Do I need to register or do something in the Windows CE device to can use this script?
Thanks.
Upvotes: 0
Views: 96