system shut down

what is code for system shut down by using of VB

Page 1 of 1

4 Replies - 1742 Views - Last Post: 12 July 2009 - 09:22 AM Rate Topic: -----

#1 pawan kumar prajapati  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 11-July 09

system shut down

Post icon  Posted 11 July 2009 - 04:09 AM

what is code for system shut down by using of VB
Is This A Good Question/Topic? 0
  • +

Replies To: system shut down

#2 firebolt  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 92
  • View blog
  • Posts: 5,561
  • Joined: 20-February 09

Re: system shut down

Posted 11 July 2009 - 05:52 AM

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Post your code like this: :code:

Thanks.
Was This Post Helpful? 0
  • +
  • -

#3 Nikhil_07n  Icon User is offline

  • The cheese stands alone..
  • member icon

Reputation: 49
  • View blog
  • Posts: 2,489
  • Joined: 09-January 09

Re: system shut down

Posted 11 July 2009 - 07:16 AM

Can't/Shouldn't give code to you but can give a hint.
Use combination of VB6 + Batch files

Use google, try something and come back.. you'll feel better.
Was This Post Helpful? 0
  • +
  • -

#4 firebolt  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 92
  • View blog
  • Posts: 5,561
  • Joined: 20-February 09

Re: system shut down

Posted 12 July 2009 - 12:03 AM

Have a look here:
http://www.dreaminco...e/snippet90.htm
Was This Post Helpful? 0
  • +
  • -

#5 born2c0de  Icon User is offline

  • printf("I'm a %XR",195936478);
  • member icon

Reputation: 180
  • View blog
  • Posts: 4,667
  • Joined: 26-November 04

Re: system shut down

Posted 12 July 2009 - 09:22 AM

Quote

Use combination of VB6 + Batch files

The Batch File method includes calling the shutdown command which internally calls the Windows API.
Hence, it's better to call the shutdown API function from the application itself.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1