Command line vbscript中文件的校验和

Command line vbscript中文件的校验和,command-line,vbscript,fciv,Command Line,Vbscript,Fciv,我有以下命令 “C:\Program Files\File Checksum Integrity Verifier\fciv.exe”-sha1“D:\new.txt” 如何从vbscript运行此命令?有人能帮我吗?VBScript提供了两种不同的方法来执行命令行,这两种方法都在WshShell对象()上 使用 使用 如何将结果存储在fciv生成的变量中? Dim WshShell, oExec Set WshShell = CreateObject("WScript.Shell") Set

我有以下命令
“C:\Program Files\File Checksum Integrity Verifier\fciv.exe”-sha1“D:\new.txt”


如何从vbscript运行此命令?有人能帮我吗?

VBScript提供了两种不同的方法来执行命令行,这两种方法都在WshShell对象()上

使用

使用


如何将结果存储在fciv生成的变量中?
Dim WshShell, oExec
Set WshShell = CreateObject("WScript.Shell")

Set oExec = WshShell.Exec("""C:\Program Files\File Checksum Integrity Verifier\fciv.exe"" -sha1 ""D:\new.txt""")

Do While oExec.Status = 0
     WScript.Sleep 100
Loop

WScript.Echo oExec.Status
Dim WshShell
Set WshShell = CreateObject("WScript.Shell")

WshShell.Run """C:\Program Files\File Checksum Integrity Verifier\fciv.exe"" -sha1 ""D:\new.txt""", 1, true