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

New Post: System.IO.DirectoryNotFoundException... What?

$
0
0
The error is coming from the RegisterTaskDefinition native method. It likely has something to do with the settings for newTask.

To make the syntax simpler, try:
Dim tf = If(ts.GetFolder("X"), ts.RootFolder.CreateFolder("X"))
tf.RegisterTaskDefinition("myTask", newTask)

Viewing all articles
Browse latest Browse all 2206

Trending Articles



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