Help import the hash sum from RHash.exe to a text file!

So you want to capture a text output of an external program.
In a nutshell, there are 2 ways to achieve this in jscript:

  • shell.Exec() method which is simple but will briefly show a console window (which may be annoying).
  • shell.Run() method which is more complex (it involves temp files behind the scenes).

Please take a look at this old thread, specifically a tbone's RunHiddenEx function (for which I am thankful and have used it successfully many times) -- it uses a Run() method and achieves exactly what you need.