Noncentz705, i finally got it to work, thanks.
I have a couple of questions though.
1) how do i specify the directory to run a file in the app folder, this backward and forward slash things are causing problems?
2) The same file i want to run with node-webkit, i would like to request it with ajax request url, for ajax request url, it just needs to be in the same folder with the executable, how can i work around this?
I've written a plugin that pipes to cmd directly, and returns the shell response, but I won't release it.
The double batch trick works fine. Make sure you've defined a global variable named cd and that you are previewing with node-webkit.
Global text c:/users/bob/desktop/foo.bat
On some event browser execute JS "require('child_process').execFile('"&cd&"');"