Re: exec - Directory (including " ") and A LOTS of parameters

From: Paul Barfoot (Paul_at_theglobalfamily.fsworld.co.uk)
Date: 10/28/04

  • Next message: Bhavin Patel: "How to test response cache is working or not?"
    Date: Thu, 28 Oct 2004 10:50:42 +0100
    
    

    Hi Mira

    To start with try using the short directory path to your executable. I
    created a folder "x x" on my C drive and then checked its short filename
    using dir /x x* in the parent directory to show that my folder was called
    XX014B~1. That will get rid of 1 set of " ".

    Could you also use / instead of \ in the path? Or am I thinking of something
    else?

    I'm not sure that you will be able to do what you want as this appears in
    the PHP help file for each of the methods of executing an external command:

    "Note that if you start a program using this function and want to leave it
    running in the background, you have to make sure that the output of that
    program is redirected to a file or some other output stream or else PHP will
    hang until the execution of the program ends."

    -- 
    Paul Barfoot
    The Global Family Website is at: http://tgf.athnic.com
    "Mira Jungholdt" <PhX-X@gmx.net> wrote in message 
    news:c1c895cc.0410220441.16095f69@posting.google.com...
    > Hi!
    >
    > I try to make following command work:
    >
    > C:\x x\daExe.exe "asdf asdf" "jkl jkl"
    >
    > As you can see, the directory has space in one of its folder and the 
    > arguments too.
    >
    > now i try following commands:
    > exec("\"c:\x x\daExe.exe\" \"asdf asdf\" \"jkl jkl\"");
    > exec('\"c:\x x\daExe.exe\" \"asdf asdf\" \"jkl jkl\"');
    > ...
    >
    > I look on php.net but i havn't found anything that could help.
    >
    > has anybody a clou?
    >
    > phx 
    

  • Next message: Bhavin Patel: "How to test response cache is working or not?"

    Relevant Pages

    • find a folder in the current directory
      ... In my GUI I'm trying to give "cd" command address of a directory that has different directory path (on different machines) only the name of the folder would be the same ...
      (comp.soft-sys.matlab)
    • find a folder in the current directory
      ... In my GUI I'm trying to give "cd" command address of a directory that has different directory path (on different machines) only the name of the folder would be the same ...
      (comp.soft-sys.matlab)
    • Re: rsync command
      ... The command is going to sync every file and write the synced ... files to the /media/disk folder - presumably another HD is mounted at ... Try executing 'ls /.' ...
      (Ubuntu)
    • Re: offline fragmentation Jet error 1811
      ... Looks like you are not in the right directory for performing the command. ... Make sure you are in the C:\Program Files\exchsrvr\bin folder when executing ... > failed with jet error 1811 ...
      (microsoft.public.exchange.admin)
    • Re: pause until command completes before next command
      ... is there a way to pause the script from executing a ... command until the previous command is complete? ... I have a command the copies a folder to a backup location and then ... the script will error out. ...
      (microsoft.public.scripting.vbscript)