Quantcast
Viewing all articles
Browse latest Browse all 2206

New Post: Reading fields from Actions

I am trying to get the fields from the Actions of a task, but I'm not finding how to access them.

Here is a small code sample:

Dim Actions As Microsoft.Win32.TaskScheduler.ActionCollection = myTask.Definition.Actions
            For Each act As Microsoft.Win32.TaskScheduler.Action In Actions
                If act.ActionType = Microsoft.Win32.TaskScheduler.TaskActionType.Execute Then
                    Dim args As String = ???

I have an Execute Action, and I want to get the arguments for the execute action, or the path, etc.

On the Email action, I would like to get the from, to, etc.  How do I access those fields.

Thanks

 


Viewing all articles
Browse latest Browse all 2206

Trending Articles



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