Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

is there a way to execute the batch(*.bat) file from a sharepoint designer workflow?

I've a specific column in the sharepoint list, a batch file should be executed whenever the value of the field is changed. I just want to design a sharepoint designer workflow to be triggered whenever the value of the site column is changed and it should execute the batch file.

Or is there batter approach to follow?

share|improve this question
    
What is the batch file doing? –  PirateEric Apr 15 '11 at 19:38
    
it will pull the information from the sharepoint list and form a html page. –  Karthikeyan Apr 15 '11 at 19:42
    
Is this for one particular list or any list where the Site Column appears? –  Dave Wise Apr 15 '11 at 21:13
    
its a single list in MOSS. –  Karthikeyan Apr 16 '11 at 0:28
add comment

3 Answers 3

I would suggest that you create a custom workflow activity to do the stuff instead of a batch file. Since your only gathering info from a list and producing a file this should be quite easy.

share|improve this answer
    
which one you prefer, a custom workflow or an item handler? –  Karthikeyan Apr 16 '11 at 17:37
    
Custom Workflow Activity: msdn.microsoft.com/en-us/library/ee231574.aspx –  Wictor Wilen MCA MCM MVP Apr 17 '11 at 8:43
add comment

I would NOT recommend allowing the executing of .bat or powershell scripts from a workflow activity.

In some respects, this is a very huge security hole - someone could very easily inject their own code into your batch/script file to execute after yours, and depending on the context of the script, could wreak havok on your farm.

Instead, I would go with Wictor's suggestion of a custom workflow activity to maximise security.

share|improve this answer
add comment

My recommendation is to create a powershell script that runs as a scheduled task. This powershell script will look for a change in a list value item (custom column). When the column changes then the powershell script performs your action. I hope that gets you going in the right direction, Dan

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.