VBS Scripts Won't Run

By John Ruiz

All versions of Windows starting from Windows 95 are capable of running VBS files. VBS or VBScript files contain Visual Basic code that can run if you double-click the file. This standard action may not work depending on how you configured your Windows operating system and what you have installed. Fix your VBS file association if you notice that VBS scripts no longer run when you double-click on them.

Step 1

Download the Windows Script version that matches your operating system (see Resources). Skip to Step 3 if you are using Windows Vista or Windows 7.

Step 2

Double-click the file that you just downloaded to install Windows Script. Windows Script contains the necessary files that run VBS files.

Step 3

Right-click the VBS file that you cannot run and click "Properties." Click the "Change" button and double-click "Microsoft Windows Based Script Host" to restore the association. If you cannot find this item, click "Browse" and go to the "System32" folder inside your "Windows" folder in your primary drive. Double-click "wscript.exe" to finish the process. You may now run VBS files properly from there by double-clicking the item.