Need to regain VBS association to run scripts

Posted on 2006-03-30
Last Modified: 2012-06-27
Notable Guru's
I accidently associated my vbs scripts with an editor.  Now I need to make it run again when I double click on it.
Can anyone help?

Thank you

Question by:tcalbaz
    LVL 28

    Accepted Solution

    try holding down shift while right clicking a .vbs file. Then choose "Open With" Then "Choose Program".Then hit the "Other" button. Browse to wscript.exe in your system32 folder and select it while making sure the box that says "Always use this program..." is checked.
    LVL 14

    Expert Comment

    simply go to control panel & open folder option. Then go to the tab "File Types". Here you can find many extensions & among those select VBS. Then Click the "Advance" button. Now the "Edit File Type" window will open. Here from actions (Edit, Open, Open2, Print) select Open & click Edit. Now on the "Application used to perform Action" just paste: C:\WINNT\System32\WScript.exe "%1" %*

    That's All
    LVL 5

    Expert Comment

    File associations can easily be managed through windows explorer:

    Open windows explorer (Start --> Run --> explorer)
    Click Tools --> Folder Options
    Go to the File Associations Tab and you can do whatever you want with them (I have a Dutch WinXP so I can not guarantee that the tab is called 'File Associations', In my version it's the third tab from the left)

    Atan Asfaloth

    LVL 1

    Author Comment

    I think all of you are right.
    But vinnyd79 was first.
    Thank you all


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
    I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
    Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
    This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now