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: wincontrol.exe - command line windows control  (Read 3369 times)

0 Members and 1 Guest are viewing this topic.

tspeirs

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 129
  • Last login:July 23, 2020, 07:44:52 am
  • I want to build my own arcade controls!
wincontrol.exe - command line windows control
« on: April 07, 2009, 02:48:40 pm »
I know there are older programs that do the same thing but this one supports all windows controller options and deffinitly works with vista etc.

Pretty straightforward as long as you know what a command line interface utility is.

[.net 2 application.]
http://spesoft.com/wincontrol.zip

Here is the usage as shown when you run it.


--------------------------------------------------------------

WinControl by Tom Speirs.
Windows controller command line application.

Usage:
wincontrol.exe [-force] -shutdown|-logoff|-poweroff|-suspend|-restart|-hibernate
|-monitoroff|-close] [process names]

Control system state, turn off monitor or close process.

Use -force to force shutdown etc, or force kill a process if it does not close.

--------------------------------------------------------------
« Last Edit: April 07, 2009, 03:34:22 pm by tspeirs »

drventure

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4152
  • Last login:April 23, 2024, 06:53:06 pm
  • Laser Death Ray Bargain Bin! Make me an offer!
Re: wincontrol.exe - command line windows control
« Reply #1 on: April 07, 2009, 03:03:32 pm »
Along the same lines, here's the excellent poweroff utility.

http://users.telenet.be/jbosman/applications.html

My main use is to turn off my monitors immediately and lock my machine with a quick hotkey. But it can sleep a machine, turn off, restart, etc, etc.

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: wincontrol.exe - command line windows control
« Reply #2 on: April 07, 2009, 03:08:29 pm »
I've been using a 3rd party program to do this for years as I like to have icons to shutdown and restart on the desktop, but I have since found out that Windows has a command line app that can do it (located in WINDOWS\System32\shutdown.exe)

Code: [Select]
Usage: shutdown [/i | /l | /s | /r | /a | /p | /h | /e] [/f]
    [/m \\computer][/t xxx][/d [p:]xx:yy [/c "comment"]]

    No args    Display help. This is the same as typing /?
    /?         Display help. This is the same as not typing any options
    /i         Display the graphical user interface (GUI).
               This must be the first option
    /l         Log off. This cannot be used with /m or /d option
    /s         Shutdown the computer
    /r         Shutdown and restart the computer
    /a         Abort a system shutdown.
               This can only be used during the time-out period
    /p         Turn off the local computer with no time-out or warning.
               This can only be used with /d option
    /h         Hibernate the local computer.
               This can only be used with the /f option
    /e         Document the reason for an unexpected shutdown of a computer
    /m \\computer Specify the target computer
    /t xxx     Set time-out period before shutdown to xxx seconds.
               The valid range is 0-600, with a default of 30
    /c "comment" Comment on the reason for the restart or shutdown.
               Maximum of 127 characters allowed
    /f         Force running applications to close without forewarning users
    /d [p:]xx:yy  Provide the reason for the restart or shutdown
               p indicates that the restart or shutdown is planned
               xx is the major reason number (positive integer less than 256)
               yy is the minor reason number (positive integer less than 65536)

tspeirs

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 129
  • Last login:July 23, 2020, 07:44:52 am
  • I want to build my own arcade controls!
Re: wincontrol.exe - command line windows control
« Reply #3 on: April 07, 2009, 03:36:53 pm »
and theres me thinking I was cool.  ;)