• sabyasm (12/22/2009)


    [font="Comic Sans MS"]

    The only additional thing I did was to define a variable user::fileJustFound (string).

    On for each loop container -> variable mapping -> mapped user::fileJustFound as 0 (the only one variable)

    Then used a simple file system task to delete the file with name = user::fileJustFound....

    It looped through successfully and deleted files. Wondering if you are missing this part of mapping the variable appropriately.

    [/font]

    I would ask whats the point of using the Script Task if its a simple File directory parser, why not simply use the built in file Enumerator thats provided in the Task.

    _________________________________________________________________________
    SSC Guide to Posting and Best Practices