Bonjour,
Je travail sous IIS et Windows Server 2003 et je souhaite faire un appel système pour lancer une tâche planifiée.
La commande Windows est : 
	
	schtasks /Run /TN \"maTachePlanifiée\" /S \\\\monServeur /U monDomaine\\monUser/P monPassword
 Quand je l'exécute à la mano, ça passe sans problème. Par contre que je la met dans mon code php ca ne marche pas.
	
	| 12
 3
 4
 5
 
 | <?php 
	exec("schtasks /Run /TN \"maTachePlanifiée\" /S \\\\monServeur /U monDomaine\\monUser/P monPassword", $output, $return);
	print_r($output);
	echo $return;
?> | 
 $output = Array() et $return = 1
Bien sur la tâche planifiée ne se lance pas du tout 
Avez-vous une idée du pourquoi du comment ? 
Merci d'avance,
FaFa
						
					
Partager