Questions tagged [system-shutdown]

Shutting down the current operating system. This may power down the physical hardware but may also just inactivate a virtual machine.

102 questions
0
votes
1 answer

Computer Shut Off Python 3.4

A friend of mine wants to automatically shut off his computer using Python 3.4 (to put in a program). Does anyone know a basic as-small-as-possible way to do this? OS: Mac OSX Yosemite Thanks
Raddude
  • 48
  • 1
  • 5
0
votes
1 answer

Reboot machine from C#/Forms App while session is locked

Referring to this question: .net - Reboot machine from a C#/WPF App I am attempting to create a c#/.net app that can restart the machine even if the session is locked (i.e., user is logged in, this app is running, but session is locked). I tried…
Alex
  • 649
  • 1
  • 6
  • 22
0
votes
2 answers

handle user logoff or machine shutdown requests on WindowsME

I have to write a C# application that runs on WindowsME. Yes, I mean that Microsoft operating system that has been forgotten a long long time ago. My program needs no user interaction and as WindowsME doesn't support services, it will be a console…
skylap
  • 1
0
votes
0 answers

IRP_MJ_SHUTDOWN Notification

I created a driver that allocates data in memory, I need to save the data on the hard disk before the system shuts down. Researched enough, already tried several times to make the callback work, but the system is closed and notification is not…
Flz
  • 117
  • 9
0
votes
1 answer

What might cause a Delphi program to 'prevent Windows shutdown'?

One of my Delphi XE2 programs, when running and idle, 'prevents Windows shutdown'. This is not the case with most of my applications and I need to resolve it. On XP, Windows silently fails to close; on Win7 the dialog shows my application…
frogb
  • 2,020
  • 18
  • 21
0
votes
1 answer

Invoke a windows application from a windows service on system shutdown

I am developing a windows service in .Net 3.5 in C#. This service is used to periodically invoke a windows form. Now I would like to hook an event to the service so that when the user tries to shut down the system, then also the windows form will…
rahul
  • 174,563
  • 47
  • 223
  • 254
0
votes
1 answer

Shutdown a system by sending an sms from my phone

i am currently working on a project where i need to shutdown my PC by sending an SMS from my phone.I don't know it is actually possible. But i have an idea.. I have a my cellphone/USB modem with simcard connected to my laptop.So can i shutdown my…
Anish Ubais
  • 43
  • 2
  • 12
0
votes
2 answers

How to shutdown my system via a php site using LAMP server?

This is the code i have so far site: shutdown.sh: #!/bin/sh if [ -f "/tmp/shutdown" ] then rm -f /tmp/shutdown /sbin/shutdown now fi I roughly…
blade19899
  • 647
  • 1
  • 6
  • 31
-1
votes
2 answers

Can't be able to store logout time on COMPUTER'S LOGOUT using Java Shutdown Hook

I am trying to store the time into a database when a user logs-off or logs-in into the computer but when I logs my computer off it does not store my current time into the database where if I press ctrl+c on console or terminate the program from…
asad sajjad
  • 85
  • 1
  • 11
-1
votes
1 answer

System.Diagnostics.Process.Start("Shutdown", "-s") not working in visual basic

i am writing visual basic application in visual studio 2012 to turn of the computer. i have used syntaxes like 1. System.Diagnostics.Process.Start("Shutdown", "-s") 2.System.Diagnostics.Process.Start("Shutdown", "/s") 3.…
nikhil
  • 769
  • 3
  • 9
  • 31
-1
votes
1 answer

How to verify if the system received a shutdown call

I'm trying to develop a simple test suite for code that shuts down a Windows system. The requirement is to programatically determine if the system has actually received a shutdown call before it is powered off (to pass this result further to the…
wondersz1
  • 537
  • 6
  • 14
-3
votes
1 answer

PC shutting down instantly process.start("shutdown", " /s /t")

I want to shut the PC after the time I set is over (For the input I used 3 TextBoxes), but when I press the button: private void button1_Click(object sender, EventArgs e) { int totalSeconds = int.Parse(hours.Text.ToString()) * 120 + …
Gaweringo
  • 75
  • 6
1 2 3 4 5 6
7