Execute Process Task

Execute Process Task 用于在Control Flow中执行应用程序,常用于对加密的数据进行解压。

1,RequireFullFileName 属性:是否需要完整的文件路径,如果在FullPath下没有找到文件,那么Task失败。File是Task执行的应用程序文件,默认值是True。

2,Executable 属性:可执行文件的Path和文件名,不能提供任何参数。

3,Arguments 属性:可执行文件的参数

4,WorkingDirectory属性:可执行文件执行所需的Path

5,StandardInputVariable:作为参数而传入Executable的变量。使用SSIS的变量,能够动态地向Executable的参数传值。

6,StandardOutputVariable:用于接收Executable的输出结果的变量

7,StandardErrorVariable:用于捕获Executable在执行中发生错误的变量

8,FailTaskIfReturnCodeIsNotSuccessValue:是否验证Executable的执行结果,Indicates whether the task fails if the process exit code is not the same as the success exit code

9,SuccessValue属性:如果来自于Executable的退出代码与SuccessValue属性的值不一样,那么Execute Process Task失败。默认值是0,表示Task成功执行了Executable。

10,Timeout/TerminateProcessAfterTimeOut 属性:Timeout属性表示Executable执行的超时时间,单位是s,默认值是0,表示进程可以无限制运行。该属性和TerminateProcessAfterTimeout属性联合使用,如果TerminateProcessAfterTimeout属性为True,那么超时后终止进程。

11,WindowStyle属性:设置为Hidden,表示将窗口隐藏,在正式版本中,将该属性设置为Hidden。

原文地址:https://www.cnblogs.com/ljhdo/p/4811771.html