HOWTO: Enable Windows Script Version Tools Support for Visual InterDev

ID: Q249024


The information in this article applies to:
  • Microsoft JScript, version 5.0
  • Microsoft Visual Basic, Scripting Edition, version 5.0
  • Microsoft Visual InterDev, version 6.0


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:


  2. 
    <job>
    <SCRIPT LANGUAGE="VBScript">
    </SCRIPT>
    </job> 
  3. Save the file as New Windows Script File.wsf in the Common\IDE\IDE98\NewFileItems\ folder inside the Microsoft Visual Studio installation directory.


  4. Using Notepad, create a file named Wsedit.reg that contains:


  5. 
    REGEDIT4
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\6.0\Editors\{C76D83F8-A489-11D0-8195-00A0C91BBEE3}\Extensions]
    "wsf"=dword:00000028
    "wsc"=dword:00000028 
  6. 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.


  7. Start Visual InterDev. Select Options from the Tools menu.


  8. 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:


  4. 
    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.


REFERENCES

Microsoft Script Technologies

Additional query words:

Keywords : kbJScript kbScript kbVBScript kbVisID600 kbGrpInet kbVBScript500 kbJScript500 kbDSupport
Version : WINDOWS:5.0,6.0
Platform : WINDOWS
Issue type : kbhowto


Last Reviewed: January 25, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.