# problem with executeProgram

**URL:** <https://forum.servoy.com/t/problem-with-executeprogram/14967>\
**Category:** Classic Servoy\
**Created:** [November 3, 2011, 1:49pm UTC](https://forum.servoy.com/t/problem-with-executeprogram/14967 "2011-11-03T13:49:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nromeou](https://avatars.discourse-cdn.com/v4/letter/n/779978/32.png) [@nromeou](https://forum.servoy.com/u/nromeou)\
**Post date:** [November 3, 2011, 1:49pm UTC](https://forum.servoy.com/t/problem-with-executeprogram/14967/1 "2011-11-03T13:49:35Z")

</div>

Hi,  
Im trying to execute an external program in my solution, i was using ```  
var program\_output = application.executeProgram(‘c:/labprado-copia/copia.exe’)

````and
i tryied this ```
var program_output = application.executeProgram('\\labprado-servoy\labprado-copia\copia.exe')

````

but it is not working. Through the explorer clients can acces \labprado-servoy, but i guess thats not the correct way to call the .exe on the server.  
How should i do this?

thanks in advance

---

<div class="post-metadata">

**Author:** ![anieves](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@anieves](https://forum.servoy.com/u/anieves)\
**Post date:** [November 3, 2011, 3:45pm UTC](https://forum.servoy.com/t/problem-with-executeprogram/14967/2 "2011-11-03T15:45:05Z")

</div>

The correct way to do that is:

var program\_output = application.executeProgram(‘\\labprado-servoy\labprado-copia\copia.exe’)

Taking in account that “copia.exe” must be in a shared folder so system can resolve its path.  
Remember that for each "" you use you have to put another in order to be resolved properly by the VM, cause "" determinates an escape character  
I hope that helps

---

<div class="post-metadata">

**Author:** ![ngervasi](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@ngervasi](https://forum.servoy.com/u/ngervasi)\
**Post date:** [November 3, 2011, 3:48pm UTC](https://forum.servoy.com/t/problem-with-executeprogram/14967/3 "2011-11-03T15:48:04Z")

</div>

I think that the best option would be to run the executable server side, you can do that using the Headless Client plugin or the Usermanager plugin.

---

<div class="post-metadata">

**Author:** ![nromeou](https://avatars.discourse-cdn.com/v4/letter/n/779978/32.png) [@nromeou](https://forum.servoy.com/u/nromeou)\
**Post date:** [November 8, 2011, 4:32pm UTC](https://forum.servoy.com/t/problem-with-executeprogram/14967/4 "2011-11-08T16:32:06Z")

</div>

thanks a lot anieves that worked perfectly!  
thank u both for answering
