How To Enable Windows Script Version Tools Support for Visual InterDev (249024)



The information in this article applies to:

  • Microsoft JScript 5.0
  • Microsoft Visual Basic, Scripting Edition 5.0
  • Microsoft Visual InterDev 6.0

This article was previously published under Q249024

SUMMARY

This article explains how to enable IntelliSense and syntax coloring in Microsoft Visual InterDev for Windows Script host files.

MORE INFORMATION

Steps to Enable IntelliSense and Syntax Coloring

  1. Using Microsoft Notepad, create a file that contains this:
    <job>
    <SCRIPT LANGUAGE="VBScript">
    </SCRIPT>
    </job>
  2. Save the file as New Windows Script File.wsf in the Common\IDE\IDE98\NewFileItems\ folder inside the Microsoft Visual Studio installation directory.
  3. Using Notepad, create a file named Wsedit.reg that contains:
    REGEDIT4
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\6.0\Editors\{C76D83F8-A489-11D0-8195-00A0C91BBEE3}\Extensions]
    "wsf"=dword:00000028
    "wsc"=dword:00000028
  4. Run Wsedit.reg.

    A Registry Editor dialog box will appear, asking you to confirm the registry changes. Click Yes. You will then see a second dialog box acknowledging the change. Click OK.
  5. Start Visual InterDev. Select Options from the Tools menu.
  6. Click HTML in the tree control on the left side of the dialog box. Click Start HTML pages in: Source under the Initial View section on the right side of the dialog box. Click OK to apply the change.
IntelliSense and syntax coloring will now function in Visual InterDev when you are editing Windows Script files. Perform the following steps to verify:
  1. In Visual InterDev, select New from the File menu.
  2. Click New Windows Script File, and then click Open. You will see a New Windows Script File# edit window open in source view and that syntax coloring is working.
  3. Type the following between the opening and closing <script> elements:
    Set oNet = CreateObject("WScript.Network")
    oNet.
    As you enter this code, IntelliSense will provide "Parameter Info" when you type the opening parenthesis immediately following the call to CreateObject. The IntelliSense List Members pop-up window will appear, listing the methods and properties exposed by the Windows Scripting Host Network object, when you type the dot operator (period) immediately following the oNet reference on the second line of code.

Modification Type:MinorLast Reviewed:7/1/2004
Keywords:kbhowto kbScript KB249024