Je n'ai pas trouvé la syntaxe claire et précise.
Tout ce que j'ai trouvé pour l'instant c'est ca :
Mais ca n'est pas concluant. Au secours !1) PHP script file exists:
c:\www\script.php
2) PHP is installed in:
c:\www\php\
3) BAT file contains:
@c:\www\php\cli\php.exe c:\www\script.php %1
and is saved as:
c:\www\script.bat
4) Use exec statement from PHP:
exec("c:\www\script.bat $arg", $output);
If you want to pass more than one argument, carry on with %2, %3, %4, ..., ... in your BAT file.