Re: exec
- From: Kim André Akerø <kimandre@xxxxxxxxxxxxxxxxxx>
- Date: 28 Oct 2005 15:39:08 GMT
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@xxxxxxxxxxxxxxxxxx
(remove NOSPAM to contact me directly)
.
- Follow-Ups:
- Re: exec
- From: Lars Eighner
- Re: exec
- References:
- exec
- From: Ryan Garnier
- exec
- Prev by Date: exec
- Next by Date: Re: $_POST and CSV File
- Previous by thread: exec
- Next by thread: Re: exec
- Index(es):
Relevant Pages
|