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"