Runa a small .cmd script


#1

jogr
September 13, 2016 18:49 ANSWERED
Hi

Is there anyway to run a small .cmd script, I have tried Start process but it doesn’t find it.

Thanks


#2

ihai Badita September 13, 2016 18:56
You can write it in PowerShell and use Invoke Powershell activity.


#3

Andrzej.Kniola September 13, 2016 19:15
Or if you don’t want to rewrite, you can still use StartProcess.

ProcessName: “cmd.exe”

Arguments: "/C " & absolutePathToYourFile

(optional) WorkingDirectory: Path.GetDirectoryName(absolutePathToYourFile)

Setting working directory might be needed if it f.e. works on some files with paths relative to the .cmd script file location.

Regards,

Andrzej