469,632 Members | 1,776 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,632 developers. It's quick & easy.

Unnable to shut down window

23
Hello
i trying to shut down window using vb. i able to restart and log off, but was unable to shut down. when excute the shut down command , nothing happend. it related to window os security issue?
Nov 26 '06 #1
8 1660
sashi
1,754 Expert 1GB
Hello
i trying to shut down window using vb. i able to restart and log off, but was unable to shut down. when excute the shut down command , nothing happend. it related to window os security issue?
Hi there,

What is the exact error message as well as error code / number?
Nov 27 '06 #2
sashi
1,754 Expert 1GB
Hello
i trying to shut down window using vb. i able to restart and log off, but was unable to shut down. when excute the shut down command , nothing happend. it related to window os security issue?
Hi there,

Kindly refer to below attached code segment, hope it works. Good luck & Take care.

Expand|Select|Wrap|Line Numbers
  1.   Call Shell("Rundll32.exe user,exitwindows")
  2.  
Nov 27 '06 #3
Austen
23
Hi there,

Kindly refer to below attached code segment, hope it works. Good luck & Take care.

Expand|Select|Wrap|Line Numbers
  1.   Call Shell("Rundll32.exe user,exitwindows")
  2.  


i executed the command, odd thing is nothing hppend and no error message prompt out!..
i be able to log off and restart, but only shut down. refer to some text. shut down function are related to system security? have to set it? any idea?
Nov 28 '06 #4
Careon
1
i executed the command, odd thing is nothing hppend and no error message prompt out!..
i be able to log off and restart, but only shut down. refer to some text. shut down function are related to system security? have to set it? any idea?

Mushi mushi...please try this command:

rundll32.exe user.exe,exitwindows
Nov 30 '06 #5
sashi
1,754 Expert 1GB
Mushi mushi...please try this command:

rundll32.exe user.exe,exitwindows
Hi there,

It's exactly same as above, anyway, wish you guys good luck with this experiment. Take care.
Nov 30 '06 #6
sashi
1,754 Expert 1GB
i executed the command, odd thing is nothing hppend and no error message prompt out!..
i be able to log off and restart, but only shut down. refer to some text. shut down function are related to system security? have to set it? any idea?
Hi there,

Kindly try the below code segment, hope it helps. Good luck & Take care.

Shutdown
Expand|Select|Wrap|Line Numbers
  1.   shell "shutdown -s -f -t 0"
  2.  
Restart
Expand|Select|Wrap|Line Numbers
  1.   shell "shutdown -r -f -t 0"
  2.  
Logoff
Expand|Select|Wrap|Line Numbers
  1. shell "shutdown -l -f -t 0"
  2.  
Nov 30 '06 #7
Austen
23
Hi there,

Kindly try the below code segment, hope it helps. Good luck & Take care.

Shutdown
Expand|Select|Wrap|Line Numbers
  1.   shell "shutdown -s -f -t 0"
  2.  
Restart
Expand|Select|Wrap|Line Numbers
  1.   shell "shutdown -r -f -t 0"
  2.  
Logoff
Expand|Select|Wrap|Line Numbers
  1. shell "shutdown -l -f -t 0"
  2.  



Thank a lot Sashi
Expand|Select|Wrap|Line Numbers
  1. shell "shutdown -s -f -t 0"
  2.  
above the only code gv what i want. thanks
Dec 11 '06 #8
sashi
1,754 Expert 1GB
Thank a lot Sashi
Expand|Select|Wrap|Line Numbers
  1. shell "shutdown -s -f -t 0"
  2.  
above the only code gv what i want. thanks
Hi there,

I came out with another method to shutdown windows, maybe you might want to check out the code at below attached link, hope it helps. Good luck & Take care.

Shutdown Windows
Dec 12 '06 #9

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Claire | last post: by
4 posts views Thread by Diogo Alves - Software Developer | last post: by
5 posts views Thread by Anders Both | last post: by
1 post views Thread by nikola.bucic | last post: by
2 posts views Thread by =?Utf-8?B?R2xlbm4=?= | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.