Bonjour,
Je tente d'ajouter une tache dans le planificateur mais cela ne focntionne plus alors que je n'ai pas de problème en WD21.
Je suis sous la dernière version de Windows 10 dans un domaine.
Voilà le code que j'utilise :
quelqu'un peut m'aider ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 // La tache n'existe pas, on la créé PlanificateurRAZ() // Paramètres de la tâche planifiée TâchePlanifiée.Application = fRepEnCours()+"\Outils.exe" TâchePlanifiée.RépertoireTravail = fRepEnCours() SI EnModeTest() ALORS TâchePlanifiée.Application = ComplèteRep(SysRep(srProgramFiles))+"alcuin\Outils.exe" TâchePlanifiée.RépertoireTravail = ComplèteRep(SysRep(srProgramFiles))+"alcuin\" FIN TâchePlanifiée.LigneCommande = lLigneDeCommande TâchePlanifiée.Commentaire = lCommentaire //TâchePlanifiée.DuréeMaximum = lDurée TâchePlanifiée.ArrêtSurBatteries = Faux TâchePlanifiée.Utilisateur = SysEnvironnement("USERNAME") // Horaire par défaut de la tâche planifiée HoraireTâchePlanifiée.Type = htQuotidien HoraireTâchePlanifiée.Heure = "0100" HoraireTâchePlanifiée.DateDébut = DateSys() SI PAS PlanificateurAjouteTâche(gfNomTacheMaj) ALORS GB_MsgBox("Anomalie",ErreurInfo(errComplet),1,1,7) RETOUR FIN PlanificateurEtatTâche(gfNomTacheMaj,tâchePlanifiéeDésactive) lEtatTache = PlanificateurEtatTâche(gfNomTacheMaj)
Merci
Bruno
Partager