cancel
Showing results for 
Search instead for 
Did you mean: 

Unity Api Workflow - command shell

Carlos_Guerra
Champ in-the-making
Champ in-the-making

Dear all,

Using "unity api" or vbscript in a Workflow, am I able to execute a windows command shell?

Regards,

Carlos Guerra

2 REPLIES 2

Scott_McLean
Elite Collaborator
Elite Collaborator

We routinely execute external commands from Unity scripts using System.Diagnostics.Process

Chris_Tucker
Star Contributor
Star Contributor

Hi Carlos,

As Scott said, you can use System.Diagnostics.Process (https://msdn.microsoft.com/en-us/library/system.diagnostics.process(v=vs.110).aspx) to execute external commands in a .NET environment. In a VBScript, you can use WScript.Shell (https://technet.microsoft.com/en-us/library/ee156605.aspx). Keep in mind that the command will be executed either on the client machine or on the server based on the script hook being used.  

Please let me know if I can provide any more assistance!

Chris Tucker