Skip to main content

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.

system-shutdown
0 votes
0 answers
18 views

How to prevent system shutdown if an electron app is running

I want to send an api request when the user closes the app. I have managed to send an api request on that but on shutdown the request is not sent. Is there any way in electron that we can prevent ...
user avatar
0 votes
0 answers
16 views

Timing issue while looping over the testing tool command line process

I developed a automation script in python for the testing tool. I created a command line process to execute the test using the tool in the windows system. I'm iterating with for loop using the command ...
vinoth aravind's user avatar
1 vote
1 answer
124 views

Windows Shutdown Messages

I wanted to correctly manage the shutdown of Windows in my application with data to save. However, the officiel documentation updated in July 2021 does not match what I noticed and refers to changes ...
SomeRandomGuy's user avatar
0 votes
0 answers
59 views

How to Detect System Shutdown in WPF App's OnExit Method?

I'm working on a WPF application and facing a challenge with detecting a system shutdown in the OnExit method. The goal is to send different Mixpanel events based on whether the application is closing ...
DotanVG's user avatar
0 votes
0 answers
159 views

Is there any way to cold reboot via software?

An embedded Linux device may suddenly shut down during operation. When powered on again, the kernel records the restart type as cold_boot. At the same time, there is no abnormal information in the ...
ma siwei's user avatar
2 votes
0 answers
236 views

Preventing Windows shutdown in Rust

I'm trying to require a user to confirm a Windows shutdown while my program is performing critical tasks. In order to do this, I want to listen for a WM_QUERYENDSESSION message (in a seperate thread ...
MrSchildkr's user avatar
0 votes
1 answer
327 views

Windows shut down through python

I'm using visual basic programs to create some files for my work, however, I'm learning python and want to use it to shut down my windows system after the visual basic program is completed execution
Abhishek Bajpai's user avatar
0 votes
1 answer
286 views

Programmatically, how can I tell on LINUX that the system is rebooting?

There is a lot about the "procedure" LINUX undertakes when a reboot or 'imminent shutdown' is underway. I wish to understand, programmatically, and react to, that a REBOOT IS IMMINIENT. My ...
Mark Arnold's user avatar
0 votes
1 answer
121 views

suspending a process for a while and then resume the same process programing

I need to suspend a process of a local application (Windowsform) when the user tries to shut down his station, but when the user cancels the shutdown action, I need the same application to return. I ...
Werich Ataliba's user avatar
0 votes
1 answer
629 views

Shut down Windows programmatically and wait for termination of resident processes

Background I am writing a program to shut down Windows at the specified time. I am using shutdown.exe to implement this function. In my computer, there is a resident process to record system activity ...
SATO Yusuke's user avatar
  • 1,928
2 votes
1 answer
843 views

what does shutdown -p command do? [closed]

In Linux, what does shutdown -p command do, will it directly power off the system without Halting? if it halts the system first then power off, then can we directly power off without halting using any ...
Akashbabutammali's user avatar
0 votes
0 answers
183 views

Python: throw exception in main thread on Windows shutdown (similar to Ctrl+C)

I have a Python script for automating simple tasks. Its main loop looks like this: while True: input = download_task_input() if input: output = process_task(input) upload_task_output(...
stgatilov's user avatar
  • 5,503
0 votes
0 answers
561 views

How to programmatically find Android's last shutdown datetime?

Does Android provide a simple way to find out programmatically in my Java app when the last datetime the system was turned off was? I'm not looking for when it was last turned on, but last turned off. ...
gcdev's user avatar
  • 1,476
0 votes
0 answers
530 views

what is the shutdown code in the android studio?

i'm writting a application,one function of which is shutting down the phone.so what should i write in the android studio now? i found the code segment in the net.but it did not build normally what ...
zadaji's user avatar
  • 211
4 votes
1 answer
1k views

Is there a way to detect a System-Shutdown from a .net C# Console App and delay the shutdown until your program can gracefully exit?

Keep in mind, this is a Console App running .NET with C#. Also, I might later convert this into a service, but for now, I need to handle the shutdown while my Console App is running. My system ...
Curtis's user avatar
  • 5,842

15 30 50 per page
1
2 3 4 5
8