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-06 13:22
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Help: How to call the shutdown program of winxp in batch processing View 2,160 Replies 17
Original Poster Posted 2007-01-11 02:42 ·  中国 江苏 无锡 宜兴市 电信
初级用户
Credits 38
Posts 15
Joined 2006-10-19 23:07
19-year member
UID 67027
Status Offline
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.
Floor 2 Posted 2007-01-12 02:56 ·  中国 上海 嘉定区 电信
初级用户
Credits 100
Posts 46
Joined 2006-12-19 04:57
19-year member
UID 73922
Gender Male
Status Offline
Shutdown is much better than that, isn't it.
shutdown -i
Floor 3 Posted 2007-01-12 03:08 ·  中国 湖南 常德 澧县 电信
初级用户
Credits 41
Posts 21
Joined 2007-01-10 00:24
19-year member
UID 75985
Gender Male
Status Offline
Floor 4 Posted 2007-01-12 03:47 ·  中国 江苏 无锡 电信
初级用户
Credits 38
Posts 15
Joined 2006-10-19 23:07
19-year member
UID 67027
Status Offline
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!
Floor 5 Posted 2007-01-12 04:22 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
20-year member
UID 59080
Status Offline

I've been looking for the answer to this question too, but unfortunately, I haven't found it yet.
Floor 6 Posted 2007-01-12 04:58 ·  中国 江苏 无锡 宜兴市 电信
初级用户
Credits 38
Posts 15
Joined 2006-10-19 23:07
19-year member
UID 67027
Status Offline
Looking forward to the guidance of experts!
Floor 7 Posted 2007-01-18 06:49 ·  中国 四川 成都 电信
初级用户
Credits 25
Posts 13
Joined 2007-01-18 05:24
19-year member
UID 76861
Gender Male
Status Offline
Push it up and wait for experts to solve
Floor 8 Posted 2007-01-18 07:10 ·  中国 四川 成都 联通
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 9 Posted 2007-01-18 07:29 ·  中国 四川 成都 联通
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline

mshta vbscript:CreateObject("Shell.Application").ShutdownWindows()(window.close)


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 ]
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
tghksj +2 2007-01-18 10:40

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 10 Posted 2007-01-18 10:40 ·  中国 山东 济南 电信
社区乞丐
★★
此图片另存后死机
Credits -49
Posts 90
Joined 2006-12-02 13:00
19-year member
UID 72412
Gender Male
Status Offline
......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.
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
9527 -11 2007-01-19 21:50
我的网络笔记本.非联系本人请勿访问!http://w.vicp.net
Floor 11 Posted 2007-01-18 23:40 ·  中国 北京 房山区 联通
初级用户
Credits 65
Posts 32
Joined 2007-01-17 09:56
19-year member
UID 76791
Gender Male
Status Offline
Originally posted by electronixtar at 2007-1-17 06:29 PM:

mshta vbscript:CreateObject("Shell.Application").ShutdownWindows()(window.close)


Glad that my code is useful to you. If you can note this statement in your code...

Really a master!
Floor 12 Posted 2007-02-26 13:44 ·  中国 湖北 潜江 电信
高级用户
★★★
Credits 894
Posts 411
Joined 2007-02-17 12:15
19-year member
UID 79697
Gender Male
Status Offline
mstha may just be used to call VBS scripts. Entering Taskkill /im explorer.exe can also open the shutdown dialog box.
Floor 13 Posted 2007-02-26 13:49 ·  中国 吉林 四平 联通
高级用户
★★★
Credits 859
Posts 413
Joined 2006-08-14 21:55
19-year member
UID 60532
Status Offline
Floor 14 Posted 2007-02-26 13:53 ·  中国 吉林 四平 联通
高级用户
★★★
Credits 859
Posts 413
Joined 2006-08-14 21:55
19-year member
UID 60532
Status Offline
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!
Floor 15 Posted 2007-02-28 04:49 ·  中国 江苏 无锡 电信
新手上路
Credits 6
Posts 3
Joined 2005-10-15 11:09
20-year member
UID 43524
Status Offline
Thanks for the guidance from electronixtar,
I will note in the code that it's from electronixtar@CN-DOS
Many thanks!
Forum Jump: