By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,057 Members | 1,407 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,057 IT Pros & Developers. It's quick & easy.

Unnable to shut down window

P: 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
Share this Question
Share on Google+
8 Replies


sashi
Expert 100+
P: 1,754
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
Expert 100+
P: 1,754
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

P: 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

P: 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
Expert 100+
P: 1,754
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
Expert 100+
P: 1,754
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

P: 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
Expert 100+
P: 1,754
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.