vendredi 10 avril 2015

re-launch Windows 8 app in c#

Consider an ordinary Windows 8+ app - in my case a Unity3D build. Call the app Teste.


This is running on a captive computer which has no other purpose and there are no security concerns, any Windows settings can be used.


I want Teste to be able to quit itself and then indeed launch itself again.


Currently we do (this), which works fantastically



System.Diagnostics.Process.Start( "shutdown", "/r /t 0" );


and of course have Teste launch on startup of the box using startup items. {So, Windows+R, shell:Common Startup, add a shortcut.}


However, is there a way to have Teste just quit itself and then restart itself?


Aucun commentaire:

Enregistrer un commentaire