|
zouzhxi
中级用户
   蝴蝶之吻
积分 430
发帖 177
注册 2006-9-20 来自 广东深圳
状态 离线
|
『楼 主』:
巧用RAR命令实现系统自动定时关机
使用 LLM 解释/回答一下
巧用RAR命令实现系统自动定时关机
文章来源: http://www.thtax.gov.cn/Article/ShowArticle.asp?ArticleID=17002
Windows 2000要实现自动定时关机,方法有很多,比如借用Windows 98的Rundll.exe,或者借用Windows XP的Shutdown.exe命令等。其实,利用压缩软件WinRAR中的Rar命令也可以实现自动定时关机:
第一步:右击桌面空白处,选择“新建→快捷方式”,弹出“创建快捷方式”窗口,点击“浏览”,在浏览文件夹窗口找到WinRAR安装目录D:\Program files\winrar\Rar.exe,按“确定“。
第二步:在“选择程序标题”窗口,键入快捷方式的名称“Rar关机”,点击“完成”返回桌面。
第三步:右击“Rar关机”快捷方式,选择“属性”,在“快捷方式”标签下“应用程序”的目标文本框D:\Program files\WinRAR\Rar.exe后加入命令“-ioff”,注意Rar.exe和-ioff用空格隔开,在“运行方式”窗口选择“最小化”,按“确定”。
第四步:要关机时,只要双击“RAR关机”快捷方式,WinRAR就会自动关闭系统。
需要注意的是,要实现关机功能,需要使用WinRAR 3.11以上版本。以上方法同样适用Windows 98/XP。
如果建立批处理文件“RAR关机.bat”,内容为“D:\progra~1\winrar\rar.exe -ioff”也会达到同样效果。
另外,还可以利用“任务计划”实现定时关机。先在“任务计划”中建立一个新任务,选择程序时选用WinRAR安装目录D:\Program files\winrar\Rar.exe,接着进入此任务的“高级属性”。在“运行”文本框中,在“D:\Program files\winrar\Rar.exe”的后面加入参数“-ioff”,注意Rar.exe和“-ioff”用空格隔开,再点击“设置密码”,输入密码并确认密码,点击两次“确定”。
经过设置后,WinRAR会在“任务计划”设定的时间自动关机。
我是刚看到的...不知道此论坛有没有发过类似的贴...特发共享...
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...
此帖被 +3 点积分 点击查看详情 评分人:【 lxmxn 】 | 分数: +2 | 时间:2007-3-17 01:33 | 评分人:【 】 | 分数: +1 | 时间:2008-2-25 14:21 |
|
|

Butterfly Kiss Blog
计算机DIY联盟论坛 |
|
2007-3-16 23:28 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
谢谢分享,巧妙利用rar命令的参数来实现关机,不错。
Thanks for sharing. It's nice to use the parameters of the rar command to achieve shutdown, good.
|
|
2007-3-17 01:33 |
|
|
HUNRYBECKY
银牌会员
    
积分 1179
发帖 442
注册 2006-9-9
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
这个在我的RAR 批处理笔记中已经做了说明第七点:
七.其他有用参数:
-ioff:在完成操作后关闭计算机,需要硬件必须支持断电功能且只有在Win32 版本可用.
-ieml:如果发了email后要删除压缩包可以添加.到EMAIL地址,如rar a -ieml.xbd@sina.com mybak c:\boot,这个很容易被病毒利用.
RAR 有很多有用的功能,还可以实现大小写转换等
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.
此帖被 +1 点积分 点击查看详情 评分人:【 】 | 分数: +1 | 时间:2008-2-25 14:21 |
|
|
|
2007-3-17 02:46 |
|
|
xycoordinate
中级用户
  
积分 493
发帖 228
注册 2007-2-16 来自 安徽
状态 离线
|
|
2007-3-17 03:35 |
|
|
liu3157551
中级用户
  
积分 259
发帖 164
注册 2006-9-21
状态 离线
|
|
2007-3-22 14:37 |
|
|
rocmagic
初级用户
 
积分 26
发帖 12
注册 2007-10-13
状态 离线
|
|
2007-10-16 18:47 |
|
|
picat
初级用户
 
积分 150
发帖 68
注册 2007-4-26
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
winrar命令行模式的参数太多了,可惜平时用到的只是皮毛啊。。
There are too many parameters in the command line mode of WinRAR. It's a pity that I usually only use the basics.
|
|
2007-10-17 13:25 |
|
|
HAT
版主
       
积分 9023
发帖 5017
注册 2007-5-31
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
Originally posted by rocmagic at 2007-10-16 06:47 PM:
在XP环境下呢
楼主写的很清楚,XP下可以^_^
Originally posted by rocmagic at 2007-10-1成6 06:47 PM:
Under XP environment?
The building owner wrote very clearly, under XP can ^_^
|
|
2007-10-17 14:09 |
|
|
craining
新手上路

积分 3
发帖 2
注册 2010-7-26 来自 山东
状态 离线
|
|
2010-8-2 17:07 |
|