Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. shutting my pc using VB command control

shutting my pc using VB command control

Scheduled Pinned Locked Moved Visual Basic
question
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    shdtwen
    wrote on last edited by
    #1

    what's the source code for shutting my pc using the vb? or opening my dvdr? thankz,

    D H 2 Replies Last reply
    0
    • S shdtwen

      what's the source code for shutting my pc using the vb? or opening my dvdr? thankz,

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      shdtwen wrote:

      what's the source code for shutting my pc using the vb?

      Whatever the code is that you come up with. But, in the end it's going to involve calling ExitWindowsEx[^]. If you want examples of it's use, all you have to do is Google for "vb.net ExitWindowsEx[^]".

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007

      1 Reply Last reply
      0
      • S shdtwen

        what's the source code for shutting my pc using the vb? or opening my dvdr? thankz,

        H Offline
        H Offline
        haggenx
        wrote on last edited by
        #3

        or you could use the ms-dos's shutdown command shutdown -s -f where: -s shutdown computer completly -f force to close applications

        Manuel say: Greetings from Mexico, Cuando salga el sol, no estare aqui... --------------------------------------- Web: http://www.otakuzone-fanzine.com Forum: http://www.otakuzone-fanzine.com/foro

        D 1 Reply Last reply
        0
        • H haggenx

          or you could use the ms-dos's shutdown command shutdown -s -f where: -s shutdown computer completly -f force to close applications

          Manuel say: Greetings from Mexico, Cuando salga el sol, no estare aqui... --------------------------------------- Web: http://www.otakuzone-fanzine.com Forum: http://www.otakuzone-fanzine.com/foro

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          Shutdown doesn't come with all flavors of Windows.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007

          P 1 Reply Last reply
          0
          • D Dave Kreskowiak

            Shutdown doesn't come with all flavors of Windows.

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007

            P Offline
            P Offline
            Paul Conrad
            wrote on last edited by
            #5

            Dave Kreskowiak wrote:

            Shutdown doesn't come with all flavors of Windows.

            I was going to say that. It has odd variations in Linux depending on what distribution...

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups