![]() |
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-06 14:21 |
48,039 topics / 350,124 posts / today 0 new / 48,251 members |
| DOS批处理 & 脚本技术(批处理室) » Help: How to call the shutdown program of winxp in batch processing |
| Printable Version 2,164 / 17 |
| Floor1 sfchman | Posted 2007-01-11 02:42 |
| 初级用户 Posts 15 Credits 38 | |
|
How to call the shutdown program of winxp in batch processing? That is, the three options of standby, shut down and restart that appear when XP shuts down normally.
|
|
| Floor2 vlanmaster | Posted 2007-01-12 02:56 |
| 初级用户 Posts 46 Credits 100 | |
|
Shutdown is much better than that, isn't it.
shutdown -i |
|
| Floor3 daijunjie | Posted 2007-01-12 03:08 |
| 初级用户 Posts 21 Credits 41 | |
| Floor4 sfchman | Posted 2007-01-12 03:47 |
| 初级用户 Posts 15 Credits 38 | |
|
I know that shutdown can also be used to shut down the computer,
but I want to know how to implement calling the above-mentioned program. I hope the experts can teach me. Thank you! |
|
| Floor5 lxmxn | Posted 2007-01-12 04:22 |
| 版主 Posts 4,938 Credits 11,386 | |
|
I've been looking for the answer to this question too, but unfortunately, I haven't found it yet. |
|
| Floor6 sfchman | Posted 2007-01-12 04:58 |
| 初级用户 Posts 15 Credits 38 | |
|
Looking forward to the guidance of experts!
|
|
| Floor7 261001126 | Posted 2007-01-18 06:49 |
| 初级用户 Posts 13 Credits 25 | |
|
Push it up and wait for experts to solve
|
|
| Floor8 electronixtar | Posted 2007-01-18 07:10 |
| 铂金会员 Posts 2,672 Credits 7,493 | |
| Floor9 electronixtar | Posted 2007-01-18 07:29 |
| 铂金会员 Posts 2,672 Credits 7,493 | |
|
Glad that my code is useful to you. I would be even happier if you could note in your code that this statement comes from electronixtar@CN-DOS [ Last edited by electronixtar on 2007-1-18 at 07:30 AM ] |
|
| Floor10 tghksj | Posted 2007-01-18 10:40 |
| 社区乞丐 Posts 90 Credits -49 | |
|
......I remembered that last time I didn't note the pronunciation code of electronixtar..
This time I remembered and noted the pronunciation code together. Added points and collected. |
|
| Floor11 wxjclh | Posted 2007-01-18 23:40 |
| 初级用户 Posts 32 Credits 65 | |
Originally posted by electronixtar at 2007-1-17 06:29 PM: Really a master! |
|
| Floor12 6622186 | Posted 2007-02-26 13:44 |
| 高级用户 Posts 411 Credits 894 | |
|
mstha may just be used to call VBS scripts. Entering Taskkill /im explorer.exe can also open the shutdown dialog box.
|
|
| Floor13 anqing | Posted 2007-02-26 13:49 |
| 高级用户 Posts 413 Credits 859 | |
| Floor14 anqing | Posted 2007-02-26 13:53 |
| 高级用户 Posts 413 Credits 859 | |
|
mshta vbscript:CreateObject("Shell.Application").ShutdownWindows()(window.close)
It would be even better if we could add code to hide the cmd box. I think it can be done with VBS. In comparison, Taskkill /im explorer.exe is more practical! |
|
| Floor15 gshavzhog | Posted 2007-02-28 04:49 |
| 新手上路 Posts 3 Credits 6 | |
|
Thanks for the guidance from electronixtar,
I will note in the code that it's from electronixtar@CN-DOS Many thanks! |
|
| 1 2 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |