1 Reply Latest reply on May 16, 2017 5:47 AM by kglad

    'window.cep.process.createProcess' returns 'is not recognized as an internal or external command an executable program or a batch file'

    luct49065593 Level 1

      Hi there,

       

      I'm facing a issue using "window.cep.process.createProcess" and may be i'm not in the right forum but unable to post in "Creative Suite SDK"... Sorry about that :/

       

       

      Here is my point :

       

      I try to load a bat file on windows, when I use no parameters, there is no problem, it’s working.

       

      var createProcessResult = window.cep.process.createProcess("C:\\Program Files (x86)\\Common Files\\Adobe\\CEP\\extensions\\antelude\\batScript\\echo.bat");

       

      where echo.bat is :

       

      @echo off
      echo
      Hello
      echo %1
      echo %2
      echo %3

       

       

      But, when I want to send parameters to my script, like the documentation say to do it:

      var createProcessResult = window.cep.process.createProcess("C:\\Program Files (x86)\\Common Files\\Adobe\\CEP\\extensions\\antelude\\batScript\\echo.bat",’param1’);

       

      Space in command aren’t not recognize anymore. (sorry error message is in French as my windows is in French)

      'C:\Program' n'est pas reconnu en tant que commande interne

      ou externe, un programme exécutable ou un fichier de commandes.

       

      So I try to use old 8 character format to by pass it :

       

      var createProcessResult = window.cep.process.createProcess("C:\\Progra~2\\Common~1\\Adobe\\CEP\\extensions\\antelude\\batScript\\echo.bat",’param1’);

       

       

      and I understood that prelude add a concatenation of parameters what I can’t bypass because there is test of variable I send to the function before this concatenation.

       

      'C:\Progra~2\Common~1\Adobe\CEP\extensions\antelude\batScript\echo.bat" "param1' n'est pas reconnu en tant que commande interne

      ou externe, un programme exécutable ou un fichier de commandes.

       

      May be i'm missing something ?

      Thank you in advance for your help: )

       

      Best regards,