Running a VBS script

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When I try to run a vbs script using cscript in a dos prompt, I receive the
following error:
C:\Documents and Settings\Rick\My Documents\My Scripts>cscript test.vbs
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

Input Error: There is no script engine for file extension ".vbs".

I get the same error if I run wscript from the run dialog box.

Any ideas? No help for the error in TechNet
 
What happens if you double click the .vbs file?

Windows® XP File Association Fixes
Copyright 2003 - Doug Knox
http://www.dougknox.com/xp/file_assoc.htm

Read the instructions.

VBS File Association Fix (Restores default associations for VBS files)

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
The same error except in a Windows dialog box. I actually had to set the
association manually on the .vbs file.

Those registry entries fixed the problem tho.

TNX for the assist.

Rick
 
Back
Top