Skip to content

Instantly share code, notes, and snippets.

@Ravenstine
Last active August 18, 2023 19:43
  • Star 11 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Ravenstine/9ccbe8269e8d5d28305b to your computer and use it in GitHub Desktop.
Installing VBScript in Wine (Linux)

How to Run VBScripts in Wine

It's very easy but not straight-forward or documented anywhere.

First, install Wine 1.6.2. This version probably isn't required, but it's the version that currently ships with Debian Jessie and it works with VBScript.

Install Winetricks and use it to add the following libraries:

  • wsh57
  • vcrun6

Now you should be able to execute a vbscript:

MsgBox("Hello World")

wine wscript helloworld.vbs

SAPI

To get SAPI working, install the following:

  • sapi51 (you may have to obtain this without winetricks)
  • speechsdk (MS Speech SDK 5.1)
@xxxjacob2
Copy link

how does this work?????

@terremoth
Copy link

how does this work?????

in your linux terminal:
$ wine cscript your_file.vbs

@campagnani
Copy link

Thankyou very much friend! You solve my problem! I can execute a .vbs file with your instrutions!

But I needed install wine32 to can execute this.

Thankyou very much!!!

@Infinite-Unexpired-Love

Thank you very much bro!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment