Created
October 15, 2019 08:09
-
-
Save Paskowsky/1647bedbdc00bb4e3e5290506a54a593 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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