This article explains how to run Visual Basic on a Windows computer. Visual Basic is a Windows programming language, so you can only run scripts on Windows.
Using the Windows Command Prompt

Open a symbol of the system. An easy way to do this is to press Windows key + S to open the search bar, type in the search bar, and then click Command Promptcommand in the search results.
You can also open Command Prompt by pressing Windows Key + X and selecting Command Prompt . If you don’t see this option , you can choose PowerShell. The command you use will work in both the standard command prompt and PowerShell.

Navigate to the folder where the script is located. cdYou can do this using a command.
For example, if the script is stored in C:Windows Scripts, type it cd C:WindowsScripts– and press Enter .
Script names typically end with a .VBS file extension.

Enter cscript scriptname.vbsand press ↵ Enter. Replace scriptname.vbs with the name of the script you want to run. This will display the output of the script in a window.
Using the Run Dialog Box

⊞ WinPress +R . Press Windows Key + R ‘to open a Run dialog where you can select and run a script or program.

Click Browse . This will open a file browser.

Select the script and click Open. If the script doesn’t appear, click the dropdown menu in the lower right corner and select All Files instead.
Scripts usually end with a *.VBS file extension.

Click OK . This will run the script.
Using Windows Explorer

⊞ WinPress +E to open File Explorer. A list of files on your computer is displayed.

Go to Scenarios. Your script will most likely end with a .VBS file extension.

Double click on the script. This will start a Visual Basic script.
If the script is a console script, it opens a command prompt window and displays the output.
Article Source : https://www.wikihow.com/Run-Visual-Basic-Script