VB Script Error


  1. Posts : 3
    Windows 7
       #1

    VB Script Error


    HI,

    I am sorry if I have posted this I the wrong place I wasn't sure where to put it,

    I am trying to open and run a .vbs file but I keep getting the following error

    'There is no script engine for file extension '.vbs' '

    I have searched the internet and found this link

    There is no script engine for file extension “.vbs” « A Place for C Sharpers/.Netters

    I have done everything it says to do in CMD.exe but I cannot find the file

    %windir%\inf\wsh.inf

    I've looking in the C:\Windows\inf directory but the file isn't there

    Anyone know how I can fix this error

    Much Appreciated
      My Computer


  2. Posts : 51,464
    Windows 11 Workstation x64
       #2

    Try the restore file association for vbs files from this tutorial - Default File Type Associations - Restore
      My Computers


  3. Posts : 3
    Windows 7
    Thread Starter
       #3

    I have managed to get it to work now, thank you, z3r010 BUT it is now bringing up a error on the .vbs file but when I ran it before there was not error, could this be related?

    its pointing to line 68

    objLog.WriteLine objFile.Name & " contains " & colMatches.Count & " matches. Manual adjustment required."
      My Computer


  4. Posts : 3
    Windows 7
    Thread Starter
       #4

    script


    Heres the script
    VB Script Error Attached Files
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 00:20.
Find Us