VBS Scripts Won't Run
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.
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.
Double-click the file that you just downloaded to install Windows Script. Windows Script contains the necessary files that run VBS files.
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.
References & Resources
- FileInfo: .VBS File Extension
- Web Talk: How to Change the Program Used to Open a File (Extension Association)
- Emax Computer Technology Info Site: Restore Default Windows 7 File Extension Type Associations
- Macropool: Windows Script Download and Repair Page
- Microsoft Download Center: Windows Script 5.7 for Windows XP
- VisualBasicScript.com: Homepage