Skip to content

Instantly share code, notes, and snippets.

@xHeaven
Forked from Paskowsky/TaskAutorunUsage.cs
Created July 30, 2020 10:35
Show Gist options
  • Save xHeaven/296555f011569dafab69a2bc849a206d to your computer and use it in GitHub Desktop.
Save xHeaven/296555f011569dafab69a2bc849a206d to your computer and use it in GitHub Desktop.
class Program
{
static void Main(string[] args)
{
TaskAutorun task = new TaskAutorun("TaskTest");
task.Author = "Pskwsk";
task.Description = "Dream Softwares";
task.Version = "1.0.0.0";
task.Path = "cmd.exe";
if (!task.TryRegisterTask())
{
Console.WriteLine("Failed to register task");
}
else
{
Console.WriteLine("Task registerd successfully");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment