Monday, December 27, 2010

【 Weak current College 】 using the "scheduled task" management power-on time


The growing popularity of the computers of today, more and more parents are experiencing a problem, their children unbridled Internet, play games, serious impact on the learning progress, physical and mental health. In fact, we use WinXP system "scheduled tasks" and "Schtasks command-line tool, you can achieve the" computer time management, this will not only let the children in normal time using your computer, you can ensure that they have adequate rest and learning time.

Force shutdown time

In order to allow your child to rest properly every day, we put down time is set to 10 pm. First create a Notepad dsgj1.bat batch file, enter "shutdown-s-f-t10-c" the rest, good night "and" statement (without the quotation marks within the outer quotation marks, in the English state input, the same below) is saved. Then open the "start → all programs → Accessories → System Tools → scheduled task", "add task" command, select "next" in the "Browse" dialog box select the just created a batch file to run the task dsgj1.bat time dialog box select "daily" and "PM 10: 00", and in the user name and password boxes, enter the appropriate user password (it is best to enter password, otherwise the scheduled task may not run).

Parameters explanation:

Above the "shutdown" as regular shutdown or restart command, "-s" to shut down the local computer, "-f" to force close running applications, "-t10" will be used for the system to shut down timer is set to 10 seconds (do not allow you to specify specific times), "-c" after the half-angle quotes to prompt information, optionally enter.

Within the prescribed time period will not be able to use

After Force shutdown, if a child tries to reboot, then you can set at 10: 00 pm till 8: 00 am unable to use the computer. Create a batch file as dsgj2.bat, join "attempted" stop shutdown-s-f-t10-c, 8: 00 in the morning before you can feel at ease after a break, "" statement.

By the above method in the scheduled task execution "add task" command, select "next" in the "Browse" and select the batch file in the dialog box, in the task run dsgj2.bat time dialog box select "daily" and "PM 10: 00"; in the user name and password boxes, enter the appropriate password for the user, in the Advanced Properties dialog box, select the "program" tab in "Advanced" button, select "Repeat task" check box; select the "duration" radio button, and enter 10 hours 0 minutes, select every 1 minute to repeat. Now 10: 00 pm shutdown later, if you cycled in less than a minute it will once again shut down, only to the next morning 8: 00 to normal use.

Use the set time period after Force shutdown

In order to protect the child's eyes, you might want to limit the children use the computer at a time of no more than 3 hours, you can use the "schedule task" from the command line tool "Schtasks".

First, create a batch file by adding "dsgj3.bat shutdown-s-f-t10-c" long to use the computer harmful to the eyes, have a rest! "," Save. Then create a batch file as dsgj.bat, include the following statement and save:

@echooff

delc:\windows\tasks\dsgj3.job

schtasks/create/tn“dsgj3”/trc:\dsg3.bat/schourly/mo3/ruuser/rp123456

The shortcut to join dsgj.bat "start" menu under the "start", then each time the computer starts in 3 hours after the forced shutdown. Because the newly created program does not overwrite the previous plan of the same name is created, so the above the second statement to delete the last boot create plans for every boot timing at the current time. The meaning of the third row to create a pretext of "dsgj3.job" plans to run a batch file "dsgj3.bat" for 3 hours off. "/Ru parameters" after "user" as the currently logged-in user name, "/rp" "123456" to "user" in the user's password.

Tip:

If your kids know "shutdown-a" command, and the inherent in 10 seconds "run" dialog box has completed running, then please apply above the "shutdown" command in the "-t" parameter directly to 0!

Set time prohibit Internet, gaming

7: 00 until 10: 00 is the best time to go home and learn, you certainly do not want the children at this time on the Internet or playing games. First create a batch file "hhxx.bat", write the following statement is saved:

@Echooff

taskkill/imiexplore.exe/imelements.exe/imttplayer.exe/f/t

Reference to the above second approach for setting, just add the plan would "dsgj2.bat" swap "hhxx.bat", and set the appropriate time to hope that the value can be. This allows you to set period of time, as long as the browser window and the game is running, in less than a minute, it will be a scheduled task to checkMeasured and is turned off, even if repeated open.

Parameters explanation:

These "taskkill" command to close one or more processes, and process name as "/im" parameter, you want to close the processes are written! (iexplore.exe as the IE browser, elements.exe is heroes of might and magic, ttplayer.exe is ttplayer), "/f" to force shutdown, "/t" is terminated and the parent process and all child processes together.

No comments:

Post a Comment