Search code examples
c++windowsvisual-studio-2015shutdown

Shutdown windows after build visual studio


I would like to let my computer build big projects over night (like Unreal Engine) but i don't want my computer to be on all night. Now making a shutdown timer is really not reliable, so i wondered if there was a way to shutdown windows after my C++ build in visual studio is complete.

Thanks in advance! Greets, Joejoepie


Solution

  • Don't do the build in Visual Studio.

    Write a batch file that (1) invokes msbuild or devenv, and (2) invokes shutdown.