Build Your Own Arcade Controls Forum
Main => Main Forum => Topic started by: dreamakuma on May 08, 2009, 11:52:24 pm
-
I am able to start up a program when XP boots up, But is there a way of shutting it off when said program is exited? Say i'm running Neorage on Startup, would thier be a safe way to exit neorage and immediatly shut down windows xp? I want to know since My neorage pc(piece of junk) could turn into a bartop, But i don't want anything showing in windows.
-
i don't know anything about neorage, since i have never used it...but how about setting windows to shut down when the power button is pressed..then just push the button when you want to shut it down?
most front ends support running an app upon exit...you could always create a batch file that calls shutdown.exe with the appropriate switches to get it to shut down, and have the frontend run that batch file at exit.
-
I am able to start up a program when XP boots up, But is there a way of shutting it off when said program is exited? Say i'm running Neorage on Startup, would thier be a safe way to exit neorage and immediatly shut down windows xp? I want to know since My neorage pc(piece of junk) could turn into a bartop, But i don't want anything showing in windows.
Create a batch file in notepad like below: (adjust directory paths as needed)
@echo off
cd c:\neoragex\
start /wait c:\neoragex\neoragex.exe
c:\windows\system32\shutdown.exe -s -t 0
Save the as start.bat to "C:\Documents and Setttings\All Users\Start menu\Programs\Startup" folder.
You can [Alt][Tab] and close the command prompt windows to stop auto shutdown.
note: if directories has long file names with spaces you will start command will need to look like below. (extra "" are required) '/wait' and '/w' are interchangable.
start /w "" "C:\Progarm Files\NeoRAGEx 5.0\NeoRAGEx 5.0.exe"