Convert SQL 2K DTS to SQL 2005 SSIS

How do i convert this script for it to be compatible with SSIS.

Function Main()

      dim pkg
      dim cus
      dim strCmdLine
      set pkg = DTSGlobalVariables.Parent

      set cus = pkg.Tasks("DTSTask_DTSCreateProcessTask_1").Customtask
      'Build the commandline string      
      strCmdLine = "D:\Inetpub\wwwroot\files\output\Archive\Reset.BAT " & DTSGlobalVariables("Account_Number").Value & ".mdb " & DTSGlobalVariables("Account_Number").Value & ".zip"

      'Assign it to the ProcessCommandline property
      cus.ProcessCommandLine = strCmdLine

      'Clean up
      set pkg = nothing

      Main = DTSTaskExecResult_Success

End Function
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

karthikramAuthor Commented:
I am using this script as part of a Task . Account number is given as an input.

Error when i try to run the project
Started:  5:00:35 PM
Error: 2006-04-05 17:00:39.89
   Code: 0xC0048006
   Source: Set Command Lines ActiveX Script Task
   Description: Retrieving the file name for a component failed with error code
End Error

Check out this URL.
It deals with migrating DTS to SSIS and particularly with the error you are getting
karthikramAuthor Commented:
yes that was usefull but how do i convert the DTSGlodblaVariables ?

Quote " For example, ActiveX script references via the DTSGlobalVariables Parent property are no longer valid. Since Dynamic Property Tasks refer to the absent parts of the old object model, these too will require attention"

I just need the equivalents in SSIS
From what I can tell... you have to rewrite them :(
I've Googled for you but all I can find is this:


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.