function popen and spaces in the path or file name

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • freak

    function popen and spaces in the path or file name

    Hi,

    Have a problem with spaces in the function popen
    Next example works fine:
    ....
    $drive="c:";
    $path="";
    $file=" \\myfile.exe">" ;
    $call = $drive.$path.$f ile;

    pclose(popen('s tart /b '.($call).'', 'r'));

    .....
    Using "Program Files" in the path name
    $path=" \\Program"> Files"; (error: "c:\Program ... " not found)
    or
    $path=" \\Program Files">"; (error: "c:\Program%20F iles ... " not found)

    thus this will not work!!!!!!!!

    Please help


Working...