China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-12 05:03
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Skillfully use RAR commands to achieve automatic scheduled shutdown of the system View 2,416 Replies 8
Original Poster Posted 2007-03-16 23:28 ·  IANA 局域网IP(Private-Use)
中级用户
★★
蝴蝶之吻
Credits 430
Posts 177
Joined 2006-09-20 12:00
19-year member
UID 63170
From 广东深圳
Status Offline
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...
Recent Ratings for This Post ( 2 in total) Click for details
RaterScoreTime
lxmxn +2 2007-03-17 01:33
+1 2008-02-25 14:21
Floor 2 Posted 2007-03-17 01:33 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
20-year member
UID 59080
Status Offline

  Thanks for sharing. It's nice to use the parameters of the rar command to achieve shutdown, good.
Floor 3 Posted 2007-03-17 02:46 ·  中国 广东 东莞 电信
银牌会员
★★★
Credits 1,179
Posts 442
Joined 2006-09-09 22:47
19-year member
UID 62249
Status Offline
This has been explained in the seventh point in my RAR batch processing notes:


VII. Other useful parameters:
-ioff: Shuts down the computer after the operation is completed. Requires that the hardware must support the power-off function and is only available in the Win32 version.
-ieml: If you want to delete the compressed package after sending an email, you can add. to the EMAIL address. For example, rar a -ieml.xbd@sina.com mybak c:\boot. This is easily exploitable by viruses.


RAR has many useful functions, and it can also realize case conversion, etc.
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
+1 2008-02-25 14:21
Floor 4 Posted 2007-03-17 03:35 ·  中国 安徽 马鞍山 电信
中级用户
★★
Credits 493
Posts 228
Joined 2007-02-16 00:38
19-year member
UID 79596
Gender Male
From 安徽
Status Offline
Nice!

Study!
Floor 5 Posted 2007-03-22 14:37 ·  中国 广西 南宁 西乡塘区 电信
中级用户
★★
Credits 259
Posts 164
Joined 2006-09-21 23:39
19-year member
UID 63296
Status Offline
Thanks, is there anything special?
Floor 6 Posted 2007-10-16 18:47 ·  中国 广东 东莞 电信
初级用户
Credits 26
Posts 12
Joined 2007-10-13 18:43
18-year member
UID 99648
Gender Male
Status Offline
Floor 7 Posted 2007-10-17 13:25 ·  中国 上海 电信张江机房
初级用户
★★
Credits 150
Posts 68
Joined 2007-04-26 00:18
19-year member
UID 86476
Gender Male
Status Offline
There are too many parameters in the command line mode of WinRAR. It's a pity that I usually only use the basics.
Floor 8 Posted 2007-10-17 14:09 ·  中国 上海 联通
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
Originally posted by rocmagic at 2007-10-1成6 06:47 PM:
Under XP environment?
The building owner wrote very clearly, under XP can ^_^
Floor 9 Posted 2010-08-02 17:07 ·  中国 山东 日照 电信
新手上路
Credits 3
Posts 2
Joined 2010-07-26 22:03
16-year member
UID 171251
Gender Male
From 山东
Status Offline
Forum Jump: