C # Implementation of the CMD command to implement the computer immediately/timed shutdownThis blog post focuses on a personal writing software that implements immediate and timed shutdown:The main is through the call window under the Cmd.exe, and then execute the shutdown-related cmd command, the realization of the co
/scannow --- windows File Protection
Tsshutdn ------- 60 seconds countdown shutdown command
Tourstart ------ xp introduction (roaming xp program displayed after installation)
Taskmgr -------- Task Manager
Eventvwr ------- Event Viewer
Eudcedit ------- Word Creation Program
Explorer ------- open the Resource Manager
Packager ------- object package
Perfmon. msc ---- computer performance monitoring program
Introduction to Tourstart------XP (roaming XP programs that appear after installation is complete)
Taskmgr--------Task Manager
EVENTVWR-------Event Viewer
Eudcedit-------Word-formation program
Explorer-------Open Resource Manager
Packager-------Object Wrapping Program
PERFMON.MSC----Computer Performance monitoring Program
ProgMan--------Program Manager
Regedit.exe----Registration Form
Rsop.msc-------Group Policy result set
Regedt32-------R
Automatic shutdown command
Command Line window, we can easily view the specific usage and parameters for each command. The method is to add/? After the command. We enter shutdown/? and return to see the introduction of the Shutdown command. The usage of various parameters is written in the introduction
Operation
1, click Start, Run, or directly press WIN+
See the topic, and many people will say, this is a B-loaded technique. But I admit that this technique can really be a force, but sometimes it works. such as, your computer card is not good, the shutdown of the menu can not come out, this time win+r, the command line to solve; If you are downloading blockbuster, but it is expected to be 2 hours to download the finished, but very late and sleepy, want to go
Android when it started, really let some small number of software fire A, cut fruit, Tom Cat, blowing skirt is one of the representatives, of course, there is a strong practical shutdown software, we go to Baidu search.
Screenshots:
I. Understanding the CMD command
What we do under CMD, here's a few details. We just need to know the following commands.
Re
ShutdownTimed Shutdown
For example, if you want to shut down at, enter at shutdown-S
, The system will prompt 30 seconds in advance, and then turn yourself off.
At shutdown-s countdown Shutdown
Shutdown.exe-S-T 10 the system shuts down after 10 seconds to cancel Automatic shutdown
Windows XP shutdown is controlled by the Shutdown.exe program and is located in the Windows\System32 folder. If you want Windows 2000 to achieve the same effect, you can copy Shutdown.exe to the system directory
For example, your computer to shut down at 22:00, you can choose "Start → run", enter "at 22:00 shutdown-s", so that at 22 o ' clock
The OS module can be used to execute the cmd command, which can be used to achieve a timed shutdown, but in the process of waiting for shutdown can not do nothing, so multi-threading comes in handy.#! /usr/bin/env python#coding=utf-8# here need to introduce three modules import time, OS, sched, Easygui, Thread # The first parameter determines when a task is Re
Label: cmd batch processing programmer DoS
For ease of operation, many programmers often write repetitive work into a batch.
However, how do I accept input parameters in batch processing? See the following example:
@ Echo offset/P time = enter the shutdown time: shutdown-S-F-T % time %
This is a batch processing of Timed
Dos cmd restart 2003 command shutdown-r-t 0
Run the cmd command to shut down or restart the computer. At/every: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday shutdown/r/t 0 automatically restarts the server command at every day.
Win7 system computer shutdown has been showing the shutdown how to do?
The method is as follows:
1, in the "Start" menu click "Attachment-> System Tools", and then click on the Secondary folder "Disk Defragmenter" to open, the general computer for a long time without disk defragmentation caused the
Method One,
1, run Regedit open Registry Editor;
2, then locate and expand to "Hkey_local_machinesoftwarepoliciesmicrosoftwindows ntreliability" in turn;
3, then double-click ShutdownReason and Onshutdownreasonui respectively and set the key value to 1, then click OK button to exit.
Method Two,
1, run Gpedit.msc Open Group Policy window;
2, in the open window, sequentially expand Computer Configuration (
In Windows 10, how does one shut down or restart the computer in CMD ?, Win10cmd
Some netizens asked me what if the computer is stuck and cannot be shut down normally? Can I shutdown or restart it in other ways? The following section describes how to shut down or restart a compute
dual password services. msc --- local service setup Sndvol32 ------- volume control program sfc.exe -------- System File Checker sfc/scannow --- windows File Protection
Tsshutdn ------- 60 seconds countdown shutdown command tourstart ------ xp introduction (roaming xp program displayed after installation) taskmgr -------- Task Manager
Eventvwr ------- Event Viewer eudcedit ------- Word Creation Program explorer ------- open the Resource Manager
P
Sometimes playing computer play too late, and do not want to get up off the computer, that how fast to let the computer shut down the computer itself, today how to teach you how to let the computer timed shutdown?
Today there are
Some time ago, I sorted out the computers and networks of the department and produced several "Operation machines", "Test Machines", and "test database servers". These machines must be on at work, in accordance with company regulations or energy-saving requirements, shutdown is required at night. It is very troublesome to manage. If you want to work out an automatic switch, it is very easy to use. Share the following:
Automatic bootThe automatic boot
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.