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 INFORMATIONSteps to Enable IntelliSense and Syntax Coloring
- Using Microsoft Notepad, create a file that contains this:
<job>
<SCRIPT LANGUAGE="VBScript">
</SCRIPT>
</job>
- 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.
IntelliSense and syntax coloring will now function in Visual InterDev when you are editing Windows Script files. Perform the following steps to verify:
- In Visual InterDev, select New from the File menu.
- 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.
- 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.
REFERENCESMicrosoft 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
|