Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: XP shutdown shortcut  (Read 2222 times)

0 Members and 1 Guest are viewing this topic.

dreamakuma

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 130
  • Last login:July 08, 2010, 02:14:54 am
XP shutdown shortcut
« 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. 
Newbie in working on cabs, expert in playing, breaking, moving slowly, and overall failing at them too.

severdhed

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2975
  • Last login:December 14, 2024, 05:01:52 pm
  • RIP Dinosaur Hippo
Re: XP shutdown shortcut
« Reply #1 on: May 09, 2009, 12:15:53 am »
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.
Current Projects:      Zak-Man | TMNT Pedestal | SNES Pi | N64 Odroid
Former Projects:     4 Player Showcase | Donkey Kong | iCade

taz-nz

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 147
  • Last login:June 12, 2019, 10:12:13 am
  • If all else fails burn the manual!
Re: XP shutdown shortcut
« Reply #2 on: May 09, 2009, 02:03:51 am »
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"
« Last Edit: May 09, 2009, 02:25:34 am by taz-nz »