Skillfully Use RAR Command to Realize Automatic Timed Shutdown of the System
Article Source: http://www.thtax.gov.cn/Article/ShowArticle.asp?ArticleID=17002
To realize automatic timed shutdown in Windows 2000, there are many methods, such as borrowing Rundll.exe from Windows 98 or borrowing Shutdown.exe command from Windows XP. In fact, the automatic timed shutdown can also be realized by using the Rar command in the compression software WinRAR:
Step 1: Right-click on the blank area of the desktop, select "New → Shortcut", a "Create Shortcut" window pops up. Click "Browse", find the WinRAR installation directory D:\Program files\winrar\Rar.exe in the Browse Folder window, and press "OK".
Step 2: In the "Select Program Title" window, type the name of the shortcut "Rar Shutdown", click "Finish" to return to the desktop.
Step 3: Right-click the "Rar Shutdown" shortcut, select "Properties", in the "Shortcut" tab, add the command "-ioff" after the target text box of the "Application" which is D:\Program files\WinRAR\Rar.exe. Note that there is a space between Rar.exe and -ioff. In the "Run" window, select "Minimized", and press "OK".
Step 4: When you need to shut down, just double-click the "RAR Shutdown" shortcut, and WinRAR will automatically shut down the system.
It should be noted that to realize the shutdown function, the WinRAR version above 3.11 is required. The above method is also applicable to Windows 98/XP.
If you create a batch file "RAR Shutdown.bat" with the content "D:\progra~1\winrar\rar.exe -ioff", the same effect will be achieved.
In addition, timed shutdown can also be realized by using "Task Scheduler". First, create a new task in "Task Scheduler", select the program and use the WinRAR installation directory D:\Program files\winrar\Rar.exe. Then enter the "Advanced Properties" of this task. In the "Run" text box, add the parameter "-ioff" after "D:\Program files\winrar\Rar.exe". Note that there is a space between Rar.exe and "-ioff". Then click "Set Password", enter the password and confirm the password, and click "OK" twice.
After the setting, WinRAR will automatically shut down the system at the time set in "Task Scheduler".
I just saw this... I don't know if similar posts have been posted in this forum... I am posting it for sharing...
|