Generate checksum in vbscript

1.5k Views Asked by At

I have a tool "File Checksum Integrity Verifier" to generate checksum.

Can anybody help me how to run this tool from vbscript to get checksum for a file?
Any help would be really appreciated.

1

There are 1 best solutions below

0
On

Use the Exec method, so you could read the output from StdOut:

Set sh = CreateObject("WScript.Shell")

Set checksum = sh.Exec("fciv ...")
Do While checksum.Status = 0
  WScript.Sleep 100
Loop

WScript.Echo checksum.StdOut.ReadAll