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

New Post: ExecAction.Path property isn't stripping off quotes when retrieved

$
0
0
You could put a new property into the ExecAction class.

Add this at the top of the Class right below the ScriptIdentifer variable.
        /// <summary>
        /// Tells the Path property if it should return a fully validated executable path. The default setting is False.
        /// </summary>
        public bool validatePath = false;
And then finally put this in...
                if (this.validatePath)
                {
                    return GetProperty<string, IExecAction>(nameof(Path), "");
                }
                else
                {
                    return GetProperty<string, IExecAction>(nameof(Path), "").Replace("\"", "");
                }

Viewing all articles
Browse latest Browse all 2206

Trending Articles



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