• Here is the code for a script task to check for the existence of c:\temp1. If it does not exist, it is created.

    public void Main()

    {

    string folderCheck = @"c:\temp1";

    if (!System.IO.Directory.Exists(folderCheck))

    System.IO.Directory.CreateDirectory(folderCheck);

    Dts.TaskResult = (int)ScriptResults.Success;

    }