title: VBS-file to hide a java program use much cpu-time?
body: <p>The Jar-file itself I use, doesn't consume much cpu-time.
  However when I start the jar-file thru a .vbs-file it consumes much more until the limit of cpu.</p>
  
  <p>Could be something changed in the vbs-file, I don't know well the programing language Visual Basic ?</p>
  
  <p>Thanks</p>
  
  <pre><code>Dim oShell
  bVisible = 0
  ' one line of code follows
  sCmd = """C:\Program Files\Java\jre1.8.0_111\bin\java.exe"" -Xms128m    -Xmx512m -jar ""C:\someJar.jar"""
  ' end of single line of code
  bWaitOnReturn = True
  Set oShell = CreateObject ("WScript.Shell")
  oShell.run sCmd, bVisible, bWaitOnReturn
  </code></pre>