Quantcast
Viewing all articles
Browse latest Browse all 2206

New Post: BUG: ExecAction Path() property isn't stripping off quotes in task path

If you have a scheduled task and the task's program/script path has quotations in it, the library isn't returning a proper path using the Path() property (ie. it's keeping the quotations).
Dim execActionPath As String
If taskObject.Definition.Actions.Count = 1 Then
  execActionPath = DirectCast(taskObject.Definition.Actions(0), TaskScheduler.ExecAction).Path
End If
As a workaround to this issue I added this to my code...
If execActionPath.Contains(Chr(34)) = True Then
  execActionPath = execActionPath.Replace(Chr(34), "")
End If

Viewing all articles
Browse latest Browse all 2206

Trending Articles



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