Call Shell("cmd.exe /c shutdown -l", vbNormalFocus)
' restart computer under xp system
Call Shell("cmd.exe /c shutdown -r", vbNormalFocus)
' turn of computer under xp system
Call Shell("cmd.exe /c shutdown -s", vbNormalFocus)
' close the above operation
Call Shell("cmd.exe /c shutdown -a", vbNormalFocus)
' close all open widows and prorgams
Call Shell("cmd.exe /c shutdown -f", vbNormalFocus)
for restart and turn of codes windows will open and you cannot close it
and will waitting 60 seconds
for delay this time use this code
(Call Shell("cmd.exe /c shutdown -s -t 10", vbNormalFocus
if you want write small message use this code
(Call Shell("cmd.exe /c shutdown -s -t 10 -c By Hani", vbNormalFocus
for more information go to dos windoe and write shutdown
Interpreter and redeployed from vb4arb
0 التعليقات:
إرسال تعليق