Quantcast
Channel: Task Scheduler Managed Wrapper
Viewing all articles
Browse latest Browse all 2206

New Post: Unable to invoke task.Run

$
0
0
The ExecAction constructor takes a comma separated list of string constants. If variables are supplied to this constructor, they must evaluate to strings and cannot be replaced at runtime. The only arguments that can be evaluated at runtime are those in the $(ArgX) format where X represents the numerical order of the parameter in the Run method.

Try:
td.Actions.Add(New ExecAction("cmd", "/c start Log /min" + ConfigurationSettings.AppSettings("consoleAppExeFilePath"), "$(Arg0)", "$(Arg1)", "$(Arg2)", "$(Arg3)", "$(Arg4)", "$(Arg5)"))

Viewing all articles
Browse latest Browse all 2206

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>