×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Windows 7 has no script engine for file extension ".vbs"

Windows 7 has no script engine for file extension ".vbs"

Windows 7 has no script engine for file extension ".vbs"

(OP)
I have just installed PrimalScript 2015 and written this very complex script file:

'==============================
Option Explicit
On Error Resume Next
Dim My_Message

My_Message = "Hello World"
MsgBox My_Message
'==============================

When I try to run this I get:

Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.

Input Error: There is no script engine for file extension ".vbs".
Execution time: < 1 second
Exit code: 1 , 0001h

banghead I have read a dozen solutions on the Net dating from the turn of the century.
It seems to be a problem no-one complains about these days.
Just the same, it happened to me! banghead

What does one do these days?

"Truth will sooner come out from error than from confusion."
Francis Bacon (1561-1626)

RE: Windows 7 has no script engine for file extension ".vbs"

How are you running your script? By double-clicking the .vbs file, or some other way?

A quick search points to .VBS files not being accociated with the right program. Do a right-click over your script and choose "Open With...". The first option should be Microsoft Windows Based Script Host. Is it set to something else?

RE: Windows 7 has no script engine for file extension ".vbs"

(OP)
I have tried the double-click way and also by running in the IDE (PrimalScript 2015). No luck!

FTR: These are the extra software options I get to open the file


If I run 'assoc' on a command line as administrator I get the line ".vbs=VBSFile".

"Truth will sooner come out from error than from confusion."
Francis Bacon (1561-1626)

RE: Windows 7 has no script engine for file extension ".vbs"

Certainly looks like a deeply routed association problem (rather than a superficial one). Try the vbs reg fix file found linked here (site claims this is just for W7, but should work for W8/8.1 as well; don't know for certain about W10).

This may disassociate PrimalScript, though.

RE: Windows 7 has no script engine for file extension ".vbs"

(OP)
For the record:

flip I now have a system which is running VBScript. flip

What did it for me?

1. From command line (run as administrator) "regsvr32 %systemroot%\system32\vbscript.dll"
2. Locate "%windir%\inf\wsh.inf (on Windows 7 this equates to C:\Windows\inf\wsh.inf")
--> right click --> Install
3. If you don't have wsh.inf (as I didn't) download a copy to the appropriate folder and proceed.


My thanks again to those who offered assistance.
Hope this helps some other poor soul bugeyed

"Truth will sooner come out from error than from confusion."
Francis Bacon (1561-1626)

RE: Windows 7 has no script engine for file extension ".vbs"

You can run it with either cscript or wscript. Depends on whether you want a message box on every WScript.echo.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close