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
Post a Comment