Reboot after closing custom shell

  • Thread starter Thread starter LUE42
  • Start date Start date
L

LUE42

We have an in-house developed program that we want to set as our
default shell instead of explorer.exe.

We need to know how to make the computer shutdown (or restart)
automatically when the shell is closed.

Currently, when the shell program is closed, Windows stays on with
nothing running.

Thanks

Cory
 
easy (so i say)
assuming that its a batch and you know a bit about it then

@echo off
echo What do you want to do....
echo.
echo 1. shutdown the computer
echo 2. restart computer
echo 3. exit this program
if '%choice%'=='1' goto 1
if '%choice%'=='2' goto 2
if '%choice%'=='3' exit
:1
c:/windows/rundll.exe user.exe,exitwindowsexec
:2
c:\windows\rundll.exe user.exe,exitwindows

thats it above the shut down is
c:\windows\rundll.exe user.exe,exitwindowsexec
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top