How to migrate Scripting.Filesystem objects used inside ActiveX script to SSIS equivalent task/code?
Generally developers use Scripting.FileSystem object in ActiveX script task to perform various file system related tasks (e.g. Copy file, Delete file etc.). In SSIS you can perform many file system related common tasks using File System task. You should find out the possibility of replacing ActiveX script using SSIS File System Task. If any task you performing using Scripting.FileSystem is not possible using File System Task (i.e. Check File Exists) then you can use Script Task in SSIS and use System.IO namespace to perform File/Folder related tasks not possible using FileSystem Task. You can perform any of the following operations using File System Task • Copy directory • Copy file • Create directory • Delete directory • Delete directory content • Delete file • Move directory • Move file • Rename file • Set Attributes (i.e. Set file to Hidden, ReadOnly, Archive or System) If your ActiveX script is using anything other than above listed operations then you might have to use SSIS Script