Posted by Kim Andrι Akerψ on 10/06/48 11:30
Ryan Garnier wrote:
> Hi!
>
> Anyone know why this doesn't work?
>
> $ruta = "cmd /c \"C:\Server\Apache2\htdocs\webvcr\config\bat\a.bat\"";
> exec($ruta);
>
>
> Thanks in advance!
You must escape all the "\" signs in the path as well, like this:
$ruta = "cmd /c
\"C:\\Server\\Apache2\\htdocs\\webvcr\\config\\bat\\a.bat\"";
exec($ruta);
--
Kim AndrΓ© AkerΓΈ
- kimandre@NOSPAMbetadome.com
(remove NOSPAM to contact me directly)
[Back to original message]
|