Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Shell "shutdown.exe -s" not working/spawning random button
#1
I made a program to shutdown my computer. It has two buttons, one to shut it down, the other to exit the program.

When I run it out of visual basic, everything runs fine. When I compile it, it spawns a random button which, when clicked, opens another copy of the program (shutdown.exe) and then halts.

Here is the code used on the shutdown button:
Code:
Private Sub Picture1_Click(Index As Integer)
'Shutdown the computer
Shell ("shutdown.exe -s")

End Sub

Is this my dodgey copy of VB or an error?

Maybe someone else could compile for me?
Reply


Messages In This Thread
Shell "shutdown.exe -s" not working/spawning random button - by Extasey - 11-04-2009, 01:06 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  dfsvc.exe crashing eXtremer 0 735 11-15-2012, 05:45 AM
Last Post: eXtremer
  Good Button :) HF~Legend 5 2,080 09-28-2012, 01:21 AM
Last Post: rqmok
  Button firefox Menu HF~Legend 2 1,526 09-08-2012, 04:20 PM
Last Post: spesificrelax
  vLoader 1.0 - File Uploader - Exe to Web - Easy - MediaFire Link Die 2 1,633 01-07-2012, 02:57 PM
Last Post: Die
  [Release] Shutdown Timer (My Version) euverve 13 4,618 12-11-2011, 10:53 PM
Last Post: euverve

Forum Jump:


Users browsing this thread: 3 Guest(s)