In my program, after installing, I'm adding a task to the task scheduler using the following command :
schtasks.exe /create /xml "task.xml" /tn "MyTasks/Task1" /f
In order to properly uninstall the program, I want to be able to remove totally the task folder "MyTasks". I can selectively delete this task using this command, but the folder still exists in the end :
schtasks.exe /delete /tn "MyTasks/Task1" /f
Is there a way to completely delete the folder ?
Thanks !