Can programs be written with JavaScript that run Windows 8 terminal commands when a gui button is clicked? -


i know windows 8 'apps' can developed using web technologies haven't been able find out if terminal commands can run in background using web technologies interface. have mongodb on computer , takes 2 terminal windows open run it. thought might neat project see if write little app nothing more button launches both commands behind scenes saving me hassle of going directories , running commands manually both terminal windows.

you won't able client-side javascript. browsers put lot of effort not offering facilities arbitrary code execution. have simple problem outside domain of expertise; rather shoehorning you're more comfortable with, try looking other people in similar circumstances. check mongodb documentation.

without knowing running mongodb on windows, 1 approach write batch file containing commands need execute (if take ownership of terminal , don't give back, see if accept "server" or "daemon" option).

if you're dead set on doing browser, trivial server-side, if know how that.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -