actually i am doing vb6.0 proj. any suggestion to reboot?
所在版块:技术の宅 发贴时间:2004-06-16 10:53

用户信息
复制本帖HTML代码
高亮: 今天贴 X 昨天贴 X 前天贴 X 
SYNTAX

Usage: shutdown [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx] [-c "comment"] [-d up:xx:yy]

No args Display this message (same as -?)
-i Display GUI interface, must be the first option
-l Log off (cannot be used with -m option)
-s Shutdown the computer
-r Shutdown and restart the computer
-a Abort a system shutdown
-m \\computername Remote computer to shutdown/restart/abort
-t xx Set timeout for shutdown to xx seconds
-c "comment" Shutdown comment (maximum of 127 characters)
-f Forces running applications to close without warning
-d [u] [p]:xx:yy The reason code for the shutdown
u is the user code
p is a planned shutdown code
xx is the major reason code (positive integer less than 256)
yy is the minor reason code (positive integer less than 65536)

the shutdown -r command has a problem, 30s delay....
i want a immediate restart,just like the restart window after a software installation.both DOS cmd & vb methods are OK.any?
thanks!

.
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!

hh
 相关帖子 我要回复↙ ↗回到正文
Is there any DOS command to reboot computer ? flu   (0 bytes , 703reads )
What's your OS? Flying   (498 bytes , 482reads )
Type help in cmd window MrDJay   (34 bytes , 271reads )
actually i am doing vb6.0 proj. any suggestion to reboot? flu   (977 bytes , 301reads )
you can use "-t 0" as indicated in my post above. Flying   (264 bytes , 285reads )
thank you! i see, i just want to find an easier method flu   (0 bytes , 270reads )
For VB programming, using the API is actually easier. Flying   (52 bytes , 232reads )
i use ExitWindowsEx , doesnot work? :( flu   (0 bytes , 251reads )
how does your code look like? Flying   (254 bytes , 293reads )
my code: flu   (541 bytes , 249reads )
cool...but kelvin   (130 bytes , 269reads )
The shutdown request may fail. Flying   (189 bytes , 278reads )
Check out the sample code there: Flying   (332 bytes , 274reads )
-_-! flu   (0 bytes , 255reads )
HELP command is not as powerful as man in the *nix world. Flying   (117 bytes , 227reads )