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

New Post: RunningTask Parameters/Arguments

$
0
0

When you create the ExecAction, you need to specify $(Arg0) for the Arguments value.

td.Actions.Add(new ExecAction("myprogram.exe", "$(Arg0)"));

Then, you can call the Run method using the string value you wish to pass as a parameter.

task.Run("My parameter string to pass to myprogram.exe");

Viewing all articles
Browse latest Browse all 2206

Trending Articles



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