中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-12 03:17
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS批处理 & 脚本技术(批处理室) » Skillfully use RAR commands to achieve automatic scheduled shutdown of the system
Printable Version  2,415 / 8
Floor1 zouzhxi Posted 2007-03-16 23:28
中级用户 Posts 177 Credits 430 From 广东深圳
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...
Floor2 lxmxn Posted 2007-03-17 01:33
版主 Posts 4,938 Credits 11,386

  Thanks for sharing. It's nice to use the parameters of the rar command to achieve shutdown, good.
Floor3 HUNRYBECKY Posted 2007-03-17 02:46
银牌会员 Posts 442 Credits 1,179
This has been explained in the seventh point in my RAR batch processing notes:



RAR has many useful functions, and it can also realize case conversion, etc.
Floor4 xycoordinate Posted 2007-03-17 03:35
中级用户 Posts 228 Credits 493 From 安徽
Nice!

Study!
Floor5 liu3157551 Posted 2007-03-22 14:37
中级用户 Posts 164 Credits 259
Floor6 rocmagic Posted 2007-10-16 18:47
初级用户 Posts 12 Credits 26
Floor7 picat Posted 2007-10-17 13:25
初级用户 Posts 68 Credits 150
There are too many parameters in the command line mode of WinRAR. It's a pity that I usually only use the basics.
Floor8 HAT Posted 2007-10-17 14:09
版主 Posts 5,017 Credits 9,023
Originally posted by rocmagic at 2007-10-1成6 06:47 PM:
Under XP environment?
The building owner wrote very clearly, under XP can ^_^
Floor9 craining Posted 2010-08-02 17:07
新手上路 Posts 2 Credits 3 From 山东
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023