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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. Shutdowning your computer

Shutdowning your computer

Scheduled Pinned Locked Moved Visual Basic
5 Posts 3 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.
  • K Offline
    K Offline
    klaydze
    wrote on last edited by
    #1

    hi all, i am developing a barcode system of one factory. my client wants to shutdown the computer if he or she click the button log out. can anyone can give me an idea about that task. all i have to do is, if i click the button Log Out my computer will shutdown. by the way i'm using vb 6.0 in that project. thanks for advance.

    Don't block the drive way of all the newbies in programming. :)

    I 1 Reply Last reply
    0
    • K klaydze

      hi all, i am developing a barcode system of one factory. my client wants to shutdown the computer if he or she click the button log out. can anyone can give me an idea about that task. all i have to do is, if i click the button Log Out my computer will shutdown. by the way i'm using vb 6.0 in that project. thanks for advance.

      Don't block the drive way of all the newbies in programming. :)

      I Offline
      I Offline
      ips_sun
      wrote on last edited by
      #2

      Hi buddy use the shell command as following.. Shell "shutdown -s -t 0"

      A K 2 Replies Last reply
      0
      • I ips_sun

        Hi buddy use the shell command as following.. Shell "shutdown -s -t 0"

        A Offline
        A Offline
        Ajai Chaudhary
        wrote on last edited by
        #3

        Hi, Dear I like the answer, Now plz tell me how could i run this command on click event of a button in VB.Net . Awaiting for your reply Yogesh Agarwal

        K 1 Reply Last reply
        0
        • I ips_sun

          Hi buddy use the shell command as following.. Shell "shutdown -s -t 0"

          K Offline
          K Offline
          klaydze
          wrote on last edited by
          #4

          hey dude thanks for the reply. it works now. thank you.:)

          Don't block the drive way of all the newbies in programming. :)

          1 Reply Last reply
          0
          • A Ajai Chaudhary

            Hi, Dear I like the answer, Now plz tell me how could i run this command on click event of a button in VB.Net . Awaiting for your reply Yogesh Agarwal

            K Offline
            K Offline
            klaydze
            wrote on last edited by
            #5

            try the same code as you see. paste it in button in vb.net

            Don't block the drive way of all the newbies in programming. :)

            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