Je peux créer une nouvelle tâche comme ceci:ARGUMENTATIONS Planificateur de tâches
Friend Sub CreateTaskF(ct_NameTask As String, ct_DescriptionTask As String, ct_Hour As Integer, ct_Minut As Integer, ct_date As String, ct_arg As String)
Dim ts As TaskService = New TaskService
Dim starttime
starttime = ct_date & "T" & ct_Hour & ":" & ct_Minut & ":00"
Dim td As TaskDefinition = ts.NewTask
td.RegistrationInfo.Description = ct_DescriptionTask
td.Triggers.Add(New DailyTrigger With {.StartBoundary = StartTime})
td.Actions.Add(New ExecAction(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString & "\Roaming\Extractor.exe", ct_arg, Nothing))
ts.RootFolder.RegisterTaskDefinition(ct_NameTask, td)
End Sub
Mais maintenant je dois obtenir l'argument de toutes les tâches dans le Planificateur de tâches. À ce moment, je recive le nombre de tâches, et leurs noms, mais je ne sais pas comment obtenir l'argument.
je besoin d'aide