c# - Windows Universal App - Launch CMD from app -


i'm building first win 10 app (in visual c#) , had quick question. (i'm java/ android guy)

i want able run cmd line programs app. desktop app , need have ability shutdown, restart, lock, , abort restart app. know can use 'shutdown' cmd, how can launch it?

thank you!

any program can run command line program can run without command line. example, shutdown; try opening run box (win+r) , typing:

shutdown /r /t 60 

you'll see windows warns system rebooting in 60 seconds (of course, shutdown /a abort shutdown). so, should able use process.start run command. no need launch full command line.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -