Microsoft KB Archive/249024

= How To Enable Windows Script Version Tools Support for Visual InterDev =

Article ID: 249024

Article Last Modified on 7/1/2004

-

APPLIES TO


 * Microsoft JScript 5.0
 * Microsoft Visual Basic, Scripting Edition 5.0
 * Microsoft Visual InterDev 6.0 Standard Edition

-



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.



Steps to Enable IntelliSense and Syntax Coloring
  Using Microsoft Notepad, create a file that contains this:    Save the file as New Windows Script File.wsf in the Common\IDE\IDE98\NewFileItems\ folder inside the Microsoft Visual Studio installation directory.  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  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. Start Visual InterDev. Select Options from the Tools menu. 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.</li></ol>

IntelliSense and syntax coloring will now function in Visual InterDev when you are editing Windows Script files. Perform the following steps to verify: <ol> In Visual InterDev, select New from the File menu.</li> 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.</li>  Type the following between the opening and closing 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. </li></ol>

<div class="references_section">