note 29481 added to language.operators.execution
| From: | waylanator at rack1 dot php dot net | Date: | Fri, 14 Feb 2003 18:03:16 +0000 |
| Subject: | note 29481 added to language.operators.execution | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-43950@lists.php.net to get a copy of this message | ||
Want to pass a parameter with your batch file to the executable?
Just do this:
mybat.bat:
__________
@echo off
c:\progra~1\myprog~1\program.exe %1
__________
php:
__________
<?php
$par= "my_parameter";
$test=
c:\mybat.bat $par;
echo "<pre>$test</pre>";
?>
__________
Have more than 1 parameter? Just add %2 %3 %4 and so on in the batch file.
Hope this helps someone.
--
http://www.php.net/manual/en/language.operators.execution.php
http://master.php.net/manage/user-notes.php?action=edit+29481
http://master.php.net/manage/user-notes.php?action=delete+29481
http://master.php.net/manage/user-notes.php?action=reject+29481