Re: exec



| > 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. ;^)


.



Relevant Pages

  • Re: exec
    ... |> executable file rather than a directory/folder name. ... Prev by Date: ...
    (alt.php)
  • Re: Mex Strat or Epiphone Les Paul?
    ... money on your habit, and you'll pick up a strange lingo. ... "gig", and by then it will be too late. ... Prev by Date: ...
    (alt.guitar.beginner)
  • Re: Smoking on board Royal Caribbean ships
    ... simple smoking is a habit of the lower classes who lack educaton. ... Prev by Date: ...
    (rec.travel.cruises)
  • Re: Teaching to ask nicely- what methods work?
    ... > Our habit has always been with the kids, that IF they don't ask nicely ... She also says "bless you" to herself when she sneezes or coughs. ... Prev by Date: ...
    (misc.kids)
  • Re: fast food soup (nDc)
    ... cruise..bad habit, but it is basically the crux of the biz. ... Prev by Date: ...
    (rec.music.gdead)