Skip to content
August 13, 2009 / kiranpatils

There is no script engine for file extension “.vbs”

Challenge:

If you received an error saying There is no script engine for file extension “.vbs” then you are on right post 🙂

Solution:

I tried doing this : regsvr32 %systemroot%\system32\vbscript.dll

http://www.technologystory.net/2009/02/25/windows-vista-tips-there-is-no-script-engine-for-file-extension-vbs/

But like you — for me too no luck 😦

But finally following trick worked for me 🙂

1. Locate the file %windir%\inf\wsh.inf (inf is a hidden
folder)

2.right click and select “Install”.

Happy Coding!!

Advertisement

41 Comments

Leave a Comment
  1. Max / Mar 8 2010 7:16 am

    Thanks alot, exactly what I was searching for! 🙂

  2. bobby / May 21 2010 3:04 am

    thanks this is what worked for me . I was working on it for last 12 hrs and finally got it

  3. shuzaku / Jul 10 2010 12:19 pm

    wonderfull step thanks, keep go a head

    • kiranpatils / Jul 20 2010 5:08 pm

      Thanks!

  4. smartflower2002 / Aug 7 2010 9:51 am

    doesnt work for me, that file does not exist in my win directory ;(

  5. smartflower2002 / Aug 7 2010 9:54 am

    can anyone please upload that file, so i can try it 🙂

  6. Hilbert / Sep 1 2010 6:30 pm

    After much messing around, kiranpatils’ suggestion [%windir%\inf\wsh.inf] on this site finally finished the problem (it actually worked well).

    …However, it was only part of the solution. It included much other info too (and I’ve only included the most relevant references here):

    1. “Restoring .vbs (VBScript Script File) File Associations”

    Info here: http://www.nilpo.com/2009/07/windows-xp/restoring-vbs-vbscript-script-file-file-associations/

    2. “regsvr32 %systemroot%\system32\vbscript.dll”

    Info here: http://www.winhelponline.com/blog/error-there-is-no-script-engine-for-file-extension-when-running-vbs-files/

    3. “Windows Script 5.7 for Windows XP”

    Info here: http://www.microsoft.com/downloads/details.aspx?FamilyID=47809025-D896-482E-A0D6-524E7E844D81&displayLang=en

    4. Various VBS stuff at http://www.kellys-korner-xp.com/taskbarplus!.htm

    5. Doug Knox File assocoation info: http://www.dougknox.com/xp/file_assoc.htm (especially “VBS file association fix”).

    This was one big messy problem and I could not have fixed it easily without the help of this site and all these other sites too.

    Presumably, the problem was initially caused by some security program nuking all the VBS scripting.

    • Jim / Nov 8 2011 8:15 pm

      Hey Hilbert, one of your links may have had the answer for me! I’ll have to wait a few days to know for sure, but a poster (Asa) @ http://www.nilpo.com/2009/07/windows-xp/restoring-vbs-vbscript-script-file-file-associations/ uses the same program I do, and I think setting the file association in the program may be what is throwing Windows off…

      “Asa Says:
      May 29th, 2011 at 1:26 am

      Pretty sure setting Notepad++ to associate with VBS files caused the problem for me (from the NP++ interface). I should probably let them know…”

      But I’m not complaining! Other than this, (if turns out to truly be the problem), Notepad++ is an AWESOME, free, small, portable (no install/admin rights needed), powerful, intuitive script and programming app. Check it out if you haven’t already.

    • fantubilog / Dec 8 2011 11:10 am

      initially the trick from kiran didn’t work for me… because I couldn’t find the file wsh.inf in my system (windows 7)

      so I tried the link given by Hilbert above “Restoring .vbs (VBScript Script File) File Associations” … downloaded the file FixVBSFileAssociationsVista.reg.. applied it.. and its work…

      (fyi.. my “.vbs” association is replaced by notepad++)

      thanks kiran and hilbert…
      good work

  7. Magician / Sep 9 2010 9:54 pm

    works very well…Thank You.

  8. John / Oct 6 2010 2:49 am

    Awesome, tried this 100% working. Thank you heaps.

  9. Todd / Dec 1 2010 7:17 pm

    Did this happen to anyone after a particular hotfix or service pack? I have the same issue on a Windows Server 2003 SP2 box. The .inf re-install will work but the file association is lost shortly thereafter. I don’t know how long this has been occurring but have an idea that it started after I last rolled updates to this box one month ago.

    • Jim / Nov 8 2011 6:05 pm

      I have the same problem. The .inf fix works, but then a few days later the problem is back. I wonder if the antivirus (McAfee) is killing the scripts or scripting host? I don’t know when the problem started, because we just recently started using a vbscript logon script. (They were mapping drives, printers, etc. manually before… hard to convince them this is “better” when this keeps happening! LOL)

  10. Sushmita / Jan 25 2011 12:25 pm

    This really helped.. I was not able to run backup and after running this, it worked.. thanks a lot..

    1. Locate the file %windir%\inf\wsh.inf (inf is a hidden
    folder)

    2.right click and select “Install”.

  11. Hammer / Mar 25 2011 5:49 pm

    Worked like a champ.

  12. Varun Shringarpure / Mar 30 2011 7:29 am

    Thanks Kiran..!

    The solution rele worked..

    After searching a lot on the net finally got the solution..

    Thanks to your Blog..

    You Rock Man..! Cheers..!

    • kiranpatils / Apr 2 2011 2:48 am

      Thanks Varun!

  13. Tim / Apr 7 2011 10:45 pm

    You, my friend, are a god-send. This is exactly the fix I needed. I’ve spent a couple days trying to get my vbs files to work and was about to give up and rebuild this XP machine.

    Thank you.

  14. ane / Jun 3 2011 11:21 am

    Thanks a lot it worked for me… 🙂

    • kiranpatils / Jun 27 2011 2:15 am

      Thanks! – Glad to know that it worked for you!

      Happy Reading!

      Cheers,
      Kiran

  15. BillyBob / Jun 3 2011 9:53 pm

    Thank god there are people like you. And of course all you others that came here as me…
    Thnaks
    /Ralf

    • kiranpatils / Jun 27 2011 2:14 am

      Thanks!

      Happy Reading!

      Cheers,
      Kiran

  16. Josh Livingston / Jun 6 2011 10:29 pm

    THANK YOU THANK YOU! Days of Tracking down solution NONE WORKED!!! EXCEPT

    YOURS! This is was a great Help. Thank you Very Much. Even Microsofts sight, did not have this solution for this probolem….like that is a surprise!

    • kiranpatils / Jun 27 2011 2:14 am

      Thanks Josh!

      Happy Reading!

      Cheers,
      Kiran

  17. pankaj garg / Oct 24 2011 11:50 am

    no such file exist in my win directory suggest me another solution…..

  18. S.E. / Oct 27 2011 9:30 am

    It works. I can only ask: what was the cause? One moment my script ran fine, the other moment I had the error message. The only thing that happened inbetween was launching Notepad++. Is it possible that Notepad++ is the culprit?

  19. Richard / Nov 4 2011 10:54 pm

    Thanks.

  20. Rick / Jan 22 2012 3:14 am

    I can’t find %windir%\inf\wsh.inf anywhere in my machine. Win 7 Pro. I am trying to install CorelPDFFusion ang get the There is no script engine for file extension “.vbs” message. Can you help?

  21. Mike / Jan 23 2012 8:41 pm

    Have this problem with W2K machine and stumbled across this “fix”.
    Noticed in Explorer\Tools\Folder Options\File Types where you can
    define your file associations that there was a .vbe extension that
    was associated with vbs. I renamed the .vbs script I wanted to run
    to .vbe and it worked.

    What didn’t work was then duplicating all the .vbe association paths to
    the .vbs, so the problem dosn’t appear to be there.

  22. Patrick / Apr 8 2012 6:20 am

    Yeesssss !

  23. Kyle / May 7 2012 1:07 am

    OMG I LOVE YOU!! TRIED TONS OF THINGS AND IT DIDN’T WORK. YAAY

  24. Dzmitry Krakadzeyau / Jun 6 2012 6:32 am

    Just spent 1h to find a solution from M$ itself. Your advice let me do it in 5s. Thank you!

  25. Ashok / Aug 31 2012 12:18 pm

    Thanks very much… installing wsh.inf worked for me.

  26. Agus Yulianto / Oct 18 2012 4:54 am

    Thanks a lots. it works…

  27. kingdutyfree / Jan 29 2013 12:04 am

    Write more, thats all I have to say. Literally, it seems as though you relied on the video
    to make your point. You definitely know what youre
    talking about, why waste your intelligence on just posting videos to your weblog when you could
    be giving us something informative to read?

  28. Mel / Mar 22 2013 2:52 am

    That was perfect, it works great. I’ve been searching and searching. Thank you!!

    • kiranpatils / Mar 23 2013 7:01 pm

      Mel — Glad to know that you found it useful!

      Thanks for your comment — It stimulates!

      Keep sharing, Keep visiting and Keep reading! 🙂

      Sincerely,
      Kiran Patil

  29. Gopal Tikar Akola / May 30 2013 10:04 am

    ‘There is no script engine for file extension.vbs’
    I keep getting this issue when trying to run .vbs files. This started because I downloaded and installed Bluefish, for web development. On setup, I selected to associate .vbs files with Bluefish (which I now realise was rather stupid). I realised that when I tried to run .vbs files, the opened up in the editor. I thought then that it would be a good idea to change the file association back to ‘Windows Based Script Host’ I then tried to run the file and now I keep getting these errors ‘There is no script engine for file extension.vbs’ every time I run .vbs files. I have done several Google searches and tried everything recommended; scripten.exe won’t install as it says ‘Setup has detected that the Service Pack version of this system is newer that the update you are applying. there is no need to install this update.’ I also tried (as suggested)
    ‘Click Start, Run and type: regsvr32 %systemroot%\system32\vbscript.dll’
    And I got the “success” message ‘DllRegisterServer in vbscript.dll succeeded.’ but this made no difference.
    I also tried, as I was getting desperate, to download an older version of vbscript.dll from the System32 folder and replace my copy, but this had no effect so I changed it back.
    What do you think, any suggestions?

  30. RAVI PERLA / Aug 19 2013 1:43 pm

    Great Solution………… Thanks a lot…………..

Trackbacks

  1. Installing Postgres, problems with vbscript wsh files-solution | venkat's take
  2. Windows Server 2008 R2 VBScript script engine missing - Just just easy answers

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: