Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.

I use VisualCron 9.9.0
I found in the forum the .net code below to get the owner of a file.
But how can I pass a parameter with the file path to this .net task?
The code compiled without errors.
But executing give a lot of errors.

Unhandled execution error: System.Reflection.TargetInvocationExecption: Execption has been thrown by the target of an invocation. --->System.ArgumentExecption: Invalid name.

using System;

public class Test
public static string GetCreator(string path)
return System.IO.File.GetAccessControl(path).GetOwner(typeof(System.Security.Principal.NTAccount)).ToString();
Forum information
Scroll to Top