command line - Checksum of file in vbscript -


i have following command
"c:\program files\file checksum integrity verifier\fciv.exe" -sha1 "d:\new.txt"

how run command vbscript? can me?

vbscript comes couple of different ways execute command lines, both of on wshshell object (wscript.shell)

using wshshell.exec

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""")  while oexec.status = 0      wscript.sleep 100 loop  wscript.echo oexec.status 

using wshshell.run

dim wshshell set wshshell = createobject("wscript.shell")  wshshell.run """c:\program files\file checksum integrity verifier\fciv.exe"" -sha1 ""d:\new.txt""", 1, true 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -