i am trying to run a command like TASKKILL /F /IM notepad.exe
var process = Ti.Process.createProcess({args: ['TASKKILL /F /IM notepad.exe']});
process.launch();
or
Ti.Process.launch('TASKKILL /F /IM skype.exe');
the debugger doesn't say much, just Error launching 'TASKKILL /F /IM notepad.exe'
any ideas?
In order to create process I use this syntax (coffeeScript) :
Here is an example of how I use Ti.Process : executing the wkhtmltopdf binary in order to create a pdf from HTML/CSS. So I use the following :
I haven't tried but maybe the following will work :
I think you'll have to split each argument of your process in a item of a list.