首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >SSIS Powershell

SSIS Powershell
EN

Stack Overflow用户
提问于 2017-05-03 14:03:27
回答 1查看 172关注 0票数 2

我试图使用以下参数通过SSIS运行下面的Poweshell命令。

代码语言:javascript
复制
(get-content z:\2.html) | foreach-object {$_ -replace "><", ">`r`nE<"} | set-content z:\2.html

这在命令行的Powershell中可以工作,但我不能让它在SSIS中工作。

我知道错误了

代码语言:javascript
复制
at "", The process exit code was "1" while the expected was "0".

在SSIS中我有:

代码语言:javascript
复制
1. Created an "Execute process Task"
2. Pointed the Executable to system32\WIndowsPowershell .. etc
3. Added the argument as detailed above using a variable as the filename 

有什么想法吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-05-03 15:46:38

似乎语法应该是..。

代码语言:javascript
复制
(get-content z:\3.html) | foreach-object {$_ -replace '><', '>`r`nE<'} | set-content z:\3.html

现在起作用了!

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/43762316

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档