Announcement

Collapse
No announcement yet.

Convert batch file into vbs

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Convert batch file into vbs

    I apologize, I'm still learning. I created this batch file which works perfectly for me, but I would like to make it a vbs script instead. Can anyone give me some starter tips? Here's my batch file

    @ECHO OFF
    beforeMsi.exe
    :: delims is a TAB followed by a space
    for /f "tokens=2* delims= " %%a in ('reg query HKU') do (
    reg query %%a\software\Google\Update\Clients\{8A69D345-D564-463c-AFF1-A69D9E530F96} /v pv
    set version=%%B)
    IF %version% EQU 13.0.782.220 goto add_reg

    :add_reg
    reg add "HKLM\SOFTWARE\USDA Forest Service\InstallCheck" /v "Google Chrome" /d 13.0.782.220 /f


    Thanks
Working...
X