Re: exec
- From: Oli Filth <catch@xxxxxxxxxxxxxx>
- Date: Fri, 28 Oct 2005 18:30:53 GMT
steve said the following on 28/10/2005 18:09:
| > 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); | | Or you could form the habit of using single quotes in which | only ' has to be escaped (unless you do want escaped characters.
OR, leaving off the trailing "\" could help cmd to interpret "a.bat" as an executable file rather than a directory/folder name. ;^)
OR you could leave it on, so that it continues to escape the double-quote mark. ;)
-- Oli .
- Follow-Ups:
- Re: exec
- From: steve
- Re: exec
- References: