powershell - 如何从SharePoint 2010工作流中调用可执行文件或Powershell脚本?

标签 powershell sharepoint-2010 executable sharepoint-workflow

我想从SharePoint 2010工作流中调用可执行文件(或Powershell脚本)。我有什么选择?可能吗我在网上做了一些搜索,但是没有任何好处。我所能获得的一切都是如何从Powershell脚本或可执行文件执行工作流的,但这不是我想要的。

想法是,当批准人完成批准文档(doc,docx,xl​​s或xlsx)后,我希望工作流调用带有参数的Powershell或可执行文件。

当我手动使用可执行文件时,它看起来像下面的cmdlet。

C:\ConvertDocs> .\convert.exe c:\docs\test.xls c:\pdfs\test.pdf

我有一个Powershell,其参数使用相同的可执行文件。 Powershell脚本cmdlet如下所示。
.\call_Convert.ps1 c:\docs\test.xls c:\pdfs\test2.pdf

最佳答案

关于powershell - 如何从SharePoint 2010工作流中调用可执行文件或Powershell脚本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18047871/

相关文章:

c++ - Visual Studio 中已编译的 .exe 中缺少的字符串

powershell - 如何在powershell中传递多个参数文件

powershell - 在 PowerShell 中创建异步 Azure VM

powershell - 将Windows服务登录名设置为GMSA帐户

Sharepoint 2010 - 将示例数据添加到用户字段类型

javascript - 如何用Javascript让Javascript运行在页面的最后一个进程

linux - 以 Mac、Linux 和 Windows 结尾的默认文件,可在 shell/终端中运行可执行文件

regex - 修剪超过 20 个字符

sharepoint - 如何纠正此自动删除Sharepoint备份的PowerShell脚本

Python:通过smtp发送可执行二进制文件到gmail