title: Restarting Computer via VBS
body: <p>I need a less dogey/more efficient way to restart my computer through VBS. The code below is an example of what I have so far. Is there a more efficient way to restart other then SendKeys method??</p>
  
  <pre><code>Option Explicit
  Dim obj
  set obj= creatobject("wscript.shell")    
      obj.run "CMD"
      wscript.sleep 300
      obj.SendKeys "shutdown /r"
      obj.SendKeys "{ENTER}"
      obj.SendKeys "exit"
      obj.SendKeys "{ENTER}"
      wscript.quit
  </code></pre>
  
  <p>Thanks</p>